- 硒版本4.5.3
- webdriver管理器版本5.3.0
- 我的本地铬版本为107.0.5304.87
在chrome(Mac OS(上本地运行测试,在driver.get()
方法上获得超时异常。测试已在firefox浏览器上成功运行。
还尝试用下载的107版本chromedriver替换webdriver管理器,结果相同。
15:41:34.598 INFO Using chromedriver 107.0.5304.62 (resolved driver for Chrome 107)
15:41:34.618 INFO Exporting webdriver.chrome.driver as /Users/norayr.sargsyan/.cache/selenium/chromedriver/mac64/107.0.5304.62/chromedriver
Starting ChromeDriver 107.0.5304.62 (1eec40d3a5764881c92085aaee66d25075c159aa-refs/branch-heads/5304@{#942}) on port 21156
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Oct 31, 2022 3:41:36 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
WARNING: Unable to find an exact match for CDP version 107, so returning the closest version found: 106
org.openqa.selenium.TimeoutException: java.util.concurrent.TimeoutException
Build info: version: '4.5.3', revision: '4b786a1e430'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.16', java.version: '11.0.10'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Command: [3c1f94f7071ec62f235edda9a3827a1f, get {url=https://vbs-dev-qa-auto.bynder.com}]
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 107.0.5304.87, chrome: {chromedriverVersion: 107.0.5304.62 (1eec40d3a576..., userDataDir: /var/folders/cb/jcvpr2vx6ln...}, goog:chromeOptions: {debuggerAddress: localhost:50070}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: MAC, proxy: Proxy(), se:cdp: ws://localhost:50070/devtoo..., se:cdpVersion: 107.0.5304.87, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
有人遇到这个问题并能帮我解决吗?
当我的本地chrome浏览器更新到新版本时,问题会自动出现,我试图更新到selenium和webdriver manager的最新版本,但没有帮助。
chrome推出110版后,问题得到解决