简体   繁体   English

selenium.common.exceptions.WebDriverException:消息:无法访问chrome

[英]selenium.common.exceptions.WebDriverException: Message: chrome not reachable

I use chrome standalone driver with selenium. 我将chrome独立驱动程序与硒一起使用。 Open the window in a new tab and switch to it (python). 在新标签页中打开窗口,然后切换到该标签页(python)。 The number of windows equals two but the browser crashed in opened one with Windows的数量等于2,但浏览器在打开时出现了崩溃

selenium.common.exceptions.WebDriverException: Message: chrome not reachable selenium.common.exceptions.WebDriverException:消息:无法访问chrome

(Driver info: chromedriver=2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067),platform=Windows NT 6.1 SP1 x86_64)

System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_60'

Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=49.0.2623.110, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]

Stacktrace:
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (None:-2)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance (None:-1)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (None:-1)
    at java.lang.reflect.Constructor.newInstance (None:-1)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable (ErrorHandler.java:206)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed (ErrorHandler.java:158)
    at org.openqa.selenium.remote.RemoteWebDriver.execute (RemoteWebDriver.java:647)
    at org.openqa.selenium.remote.RemoteWebDriver.execute (RemoteWebDriver.java:670)
    at org.openqa.selenium.remote.RemoteWebDriver.getWindowHandles (RemoteWebDriver.java:525)
    at sun.reflect.GeneratedMethodAccessor185.invoke (None:-1)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (None:-1)
    at java.lang.reflect.Method.invoke (None:-1)
    at org.openqa.selenium.support.events.EventFiringWebDriver$2.invoke (EventFiringWebDriver.java:102)
    at com.sun.proxy.$Proxy1.getWindowHandles (None:-1)
    at org.openqa.selenium.support.events.EventFiringWebDriver.getWindowHandles (EventFiringWebDriver.java:205)
    at org.openqa.selenium.remote.server.handler.GetAllWindowHandles.call (GetAllWindowHandles.java:32)
    at org.openqa.selenium.remote.server.handler.GetAllWindowHandles.call (GetAllWindowHandles.java:1)
    at java.util.concurrent.FutureTask.run (None:-1)
    at org.openqa.selenium.remote.server.DefaultSession$1.run (DefaultSession.java:176)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (None:-1)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (None:-1)
    at java.lang.Thread.run (None:-1)

Try downloading latest chrome driver as of date from below link:- 尝试从以下链接下载最新的chrome驱动程序:

http://docs.seleniumhq.org/download/ http://docs.seleniumhq.org/download/

and provide the path of latest chrome binary to your script. 并提供脚本的最新chrome二进制文件的路径。

Hope it will help you :) 希望它能对您有所帮助:)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 'selenium.common.exceptions.WebDriverException:消息:u'chrome无法访问 - 'selenium.common.exceptions.WebDriverException: Message: u'chrome not reachable python, selenium, chromedriver 'selenium.common.exceptions.WebDriverException: 消息:无法访问 u'chrome - python, selenium, chromedriver 'selenium.common.exceptions.WebDriverException: Message: u'chrome not reachable selenium.common.exceptions.WebDriverException:消息:即使更新后也无法访问chrome - selenium.common.exceptions.WebDriverException: Message: chrome not reachable even after updates Selenium.common.exceptions.WebDriverException:消息:未知错误:没有 chrome 二进制文件 - Selenium.common.exceptions.WebDriverException: Message: unknown error: no chrome binary selenium.common.exceptions.WebDriverException:消息:使用 find_element_by_id Selenium 和 ChromeDriver 时出现 chrome 无法访问错误 - selenium.common.exceptions.WebDriverException: Message: chrome not reachable error while using find_element_by_id Selenium with ChromeDriver selenium.common.exceptions.WebDriverException:消息:未知错误:Chrome无法以Selenium和RaspberryPi上的Chrome启动 - selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start with Selenium and Chrome on RaspberryPi selenium.common.exceptions.WebDriverException:消息:未知错误:无法使用 ChromeDriver Chrome Selenium 创建 Chrome 进程错误 - selenium.common.exceptions.WebDriverException: Message: unknown error: Failed to create a Chrome process error with ChromeDriver Chrome Selenium selenium.common.exceptions.WebDriverException:消息:未知错误:Chrome无法启动:使用ChromeDriver Chrome和Selenium异常退出 - selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally with ChromeDriver Chrome and Selenium selenium.common.exceptions.WebDriverException:消息:未知错误:无法使用带有Selenium Python的ChromeDriver Chrome创建Chrome进程 - selenium.common.exceptions.WebDriverException: Message: unknown error: Failed to create Chrome process with ChromeDriver Chrome with Selenium Python selenium.common.exceptions.WebDriverException:消息:未知错误:Chrome 无法启动:在 Python 中使用 ChromeDriver 和 Selenium 崩溃 - selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed with ChromeDriver and Selenium in Python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM