我将chrome更新到70版,selenium测试出现错误。因此,我将chromedriver更新为2.43(http://chromedriver.chromium.org/downloads),但仍然出现此错误:
org.openqa.selenium.SessionNotCreatedException: session not created from tab crashed (Session info: chrome=70.0.3538.102) (Driver info: chromedriver=2.42.591088 (7b2b2dca23cca0862f674758c9a3933e685c27d5),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 2.42 seconds Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:19:58.91Z' System info: host: 'xxxxxxxxxx', ip: '192.168.103.01', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_191' Driver info: driver.version: ChromeDriver
编辑:
chromedriver 2.44同样的问题
我现在更新我的Chrome,并解决了我的问题。