当我在chrome上运行我的selenium代码时,我得到以下错误,但它在firefox上运行正常.
@H_403_5@org.openqa.selenium.WebDriverException: unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
(Session info: chrome=51.0.2704.84)
(Driver info: chromedriver=2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Mac OS X 90.11.4 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 55.19 seconds
Build info: version: '2.53.0',revision: '35ae25b',time: '2016-03-15 17:00:58'
System info: host: ‘mm-MacBook-Pro.local',ip: ’90.0.0.5’,os.name: 'Mac OS X',os.arch: 'x86_64',os.version: '10.11.4',java.version: '1.7.0_60'
Session ID: 2618f9cc58558217216fee85102d9a15
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{platform=MAC,acceptSslCerts=true,javascriptEnabled=true,browserName=chrome,chrome={userDataDir=/var/folders/qg/dycb2gvn04g715_18wlclrrw0000gn/T/.org.chromium.Chromium.CWvi9E},rotatable=false,locationContextEnabled=true,mobileEmulationEnabled=false,version=51.0.2704.84,takesHeapSnapshot=true,cssSelectorsEnabled=true,databaseEnabled=false,handlesAlerts=true,browserConnectionEnabled=false,webStorageEnabled=true,nativeEvents=true,hasTouchScreen=false,applicationCacheEnabled=false,takesScreenshot=true}]
最佳答案
你使用Docker运行吗?如果是这样,您可能需要增加共享内存大小,例如shm_size:1g
原文链接:https://www.f2er.com/java/437310.html