selenium chrome 浏览器闪退

selenium 3.5.1 chrome 43 chromedriver2.7

 

多开了几个浏览器就出现闪退的情况,

 

 

升级chrome60,chromedriver2.31 解决

 

org.openqa.selenium.WebDriverException: unknown error: session deleted because o
f page crash
from tab crashed
  (Session info: chrome=43.0.2357.134)
  (Driver info: chromedriver=2.7.236900,platform=Windows NT 6.1 SP1 x86_64) (WAR
NING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: '-211-', ip: '192.168.0.3', os.name: 'Windows 7', os.arch: 'x
86', os.version: '6.1', java.version: '1.8.0_131'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, chrome={userDataD
ir=C:\Users\ADMINI~1\AppData\Local\Temp\scoped_dir5528_8518}, takesHeapSnapshot=
true, databaseEnabled=false, handlesAlerts=true, version=43.0.2357.134, platform
=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, loc
ationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScree
nshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: 263af5d3cd586fde36a72fc41cd2ea02
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.
java:215)
        at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHa
ndler.java:167)
        at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValu
e(JsonHttpResponseCodec.java:40)
        at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(Abst
ractHttpResponseCodec.java:82)
        at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(Abst
ractHttpResponseCodec.java:45)
        at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExe
cutor.java:164)
        at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(Driv
erCommandExecutor.java:82)
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.ja
va:641)

 

你可能感兴趣的:(搜索引擎,爬虫,java,python,java,golang)