当我在 windows 笔记本电脑上使用 NoraUI 和 Chrome 网络驱动程序时出现 WebDriverException

WebDriverException when I use NoraUI and Chrome web driver on my windows laptop

我在我的 windows 笔记本电脑上使用 NoraUI(用户界面的非回归自动化)和 Chrome 网络驱动程序,我有这个大错误堆栈跟踪。昨天,我的代码成功了,我确信我没有改变任何东西。

在打开任何 URL 实例化 Chrome selenium 网络驱动程序时出现以下错误:

com.google.inject.ProvisionException: Unable to provision, see the following errors:

1) Error injecting constructor, org.openqa.selenium.WebDriverException: unknown error: cannot get automation extension
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
  (Session info: chrome=57.0.2987.133)
  (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 10.58 seconds
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
System info: host: 'ITEM-72885', ip: '192.168.56.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_66'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9), userDataDir=d:\Profiles\sgrillon\AppData\Local\Temp\scoped_dir8244_3992}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=57.0.2987.133, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=accept}]
Session ID: 94defa860dff1660a2881b2d597ee974
  at noraui.application.steps.CommonSteps.<init>(CommonSteps.java:22)
  while locating noraui.application.steps.CommonSteps

1 error
            at com.google.inject.internal.InjectorImpl.get(InjectorImpl.java:1025)
            at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
            at cucumber.runtime.java.guice.impl.GuiceFactory.getInstance(GuiceFactory.java:42)
            at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:38)
            at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:48)
            at cucumber.runtime.Runtime.runStep(Runtime.java:300)
            at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
            at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
            at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
            at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:102)
            at org.junit.runners.Suite.runChild(Suite.java:128)
            at org.junit.runners.Suite.runChild(Suite.java:27)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:290)
            at org.junit.runners.ParentRunner.schedule(ParentRunner.java:71)
            at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
            at org.junit.runners.ParentRunner.access[=12=]0(ParentRunner.java:58)
            at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:268)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
            at cucumber.runtime.junit.ExamplesRunner.run(ExamplesRunner.java:59)
            at org.junit.runners.Suite.runChild(Suite.java:128)
            at org.junit.runners.Suite.runChild(Suite.java:27)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:290)
            at org.junit.runners.ParentRunner.schedule(ParentRunner.java:71)
            at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
            at org.junit.runners.ParentRunner.access[=12=]0(ParentRunner.java:58)
            at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:268)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
            at cucumber.runtime.junit.ScenarioOutlineRunner.run(ScenarioOutlineRunner.java:53)
            at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
            at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:290)
            at org.junit.runners.ParentRunner.schedule(ParentRunner.java:71)
            at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
            at org.junit.runners.ParentRunner.access[=12=]0(ParentRunner.java:58)
            at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:268)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
            at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
            at cucumber.api.junit.Cucumber.runChild(Cucumber.java:95)
            at cucumber.api.junit.Cucumber.runChild(Cucumber.java:38)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:290)
            at org.junit.runners.ParentRunner.schedule(ParentRunner.java:71)
            at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
            at org.junit.runners.ParentRunner.access[=12=]0(ParentRunner.java:58)
            at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:268)
            at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
            at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
            at cucumber.api.junit.Cucumber.run(Cucumber.java:100)
            at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
            at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
            at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
            at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
            at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
            at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
            at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
            at ✽.Given I check mandatory fields:(steps/scenarios/RAPID-TRT-ASS.feature:5)
Caused by: org.openqa.selenium.WebDriverException: unknown error: cannot get automation extension
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
  (Session info: chrome=57.0.2987.133)
  (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 10.58 seconds
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
System info: host: 'ITEM-72885', ip: '192.168.56.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_66'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9), userDataDir=d:\Profiles\sgrillon\AppData\Local\Temp\scoped_dir8244_3992}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=57.0.2987.133, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=accept}]
Session ID: 94defa860dff1660a2881b2d597ee974
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
            at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:216)
            at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
            at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:635)
            at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:658)
            at org.openqa.selenium.remote.RemoteWebDriver$RemoteWebDriverOptions$RemoteWindow.maximize(RemoteWebDriver.java:882)
            at noraui.browser.DriverFactory.generateWebDriver(DriverFactory.java:153)
            at noraui.browser.DriverFactory.getDriver(DriverFactory.java:57)
            at noraui.utils.Context.getDriver(Context.java:284)
            at noraui.application.steps.Step.<init>(Step.java:43)
            at noraui.application.steps.CommonSteps.<init>(CommonSteps.java:22)
            at noraui.application.steps.CommonSteps$$EnhancerByGuice$d24c4c.<init>(<generated>)
            at noraui.application.steps.CommonSteps$$EnhancerByGuice$d24c4c$$FastClassByGuice$ab45fbb.newInstance(<generated>)
            at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
            at com.google.inject.internal.ProxyFactory$ProxyConstructor.newInstance(ProxyFactory.java:266)
            at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
            at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
            at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
            at com.google.inject.internal.InjectorImpl.call(InjectorImpl.java:1016)
            at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
            at com.google.inject.internal.InjectorImpl.get(InjectorImpl.java:1012)
            at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
            at cucumber.runtime.java.guice.impl.GuiceFactory.getInstance(GuiceFactory.java:42)
            at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:38)
            at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:48)
            at cucumber.runtime.Runtime.runStep(Runtime.java:300)
            at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
            at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
            at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
            at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:102)
            at org.junit.runners.Suite.runChild(Suite.java:128)
            at org.junit.runners.Suite.runChild(Suite.java:27)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:290)
            at org.junit.runners.ParentRunner.schedule(ParentRunner.java:71)
            at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
            at org.junit.runners.ParentRunner.access[=12=]0(ParentRunner.java:58)
            at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:268)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
            at cucumber.runtime.junit.ExamplesRunner.run(ExamplesRunner.java:59)
            at org.junit.runners.Suite.runChild(Suite.java:128)
            at org.junit.runners.Suite.runChild(Suite.java:27)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:290)
            at org.junit.runners.ParentRunner.schedule(ParentRunner.java:71)
            at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
            at org.junit.runners.ParentRunner.access[=12=]0(ParentRunner.java:58)
            at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:268)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
            at cucumber.runtime.junit.ScenarioOutlineRunner.run(ScenarioOutlineRunner.java:53)
            at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
            at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:290)
            at org.junit.runners.ParentRunner.schedule(ParentRunner.java:71)
            at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
            at org.junit.runners.ParentRunner.access[=12=]0(ParentRunner.java:58)
            at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:268)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
            at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
            at cucumber.api.junit.Cucumber.runChild(Cucumber.java:95)
            at cucumber.api.junit.Cucumber.runChild(Cucumber.java:38)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:290)
            at org.junit.runners.ParentRunner.schedule(ParentRunner.java:71)
            at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
            at org.junit.runners.ParentRunner.access[=12=]0(ParentRunner.java:58)
            at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:268)
            at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
            at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
            at cucumber.api.junit.Cucumber.run(Cucumber.java:100)
            at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
            at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
            at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
            at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
            at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
            at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
            at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)

com.google.inject.ProvisionException: Unable to provision, see the following errors:

1) Error injecting constructor, org.openqa.selenium.WebDriverException: unknown error: cannot get automation extension
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
  (Session info: chrome=57.0.2987.133)
  (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 10.10 seconds
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
System info: host: 'ITEM-72885', ip: '192.168.56.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_66'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9), userDataDir=d:\Profiles\sgrillon\AppData\Local\Temp\scoped_dir4416_8177}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=57.0.2987.133, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=accept}]
Session ID: d187a933403bfcb6f6ca60d5d35a1df5
  at noraui.application.steps.CommonSteps.<init>(CommonSteps.java:22)
  while locating noraui.application.steps.CommonSteps

1 error
            at com.google.inject.internal.InjectorImpl.get(InjectorImpl.java:1025)
            at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
            at cucumber.runtime.java.guice.impl.GuiceFactory.getInstance(GuiceFactory.java:42)
            at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:38)
            at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:48)
            at cucumber.runtime.Runtime.runStep(Runtime.java:300)
            at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
            at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
            at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
            at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:102)
            at org.junit.runners.Suite.runChild(Suite.java:128)
            at org.junit.runners.Suite.runChild(Suite.java:27)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:290)
            at org.junit.runners.ParentRunner.schedule(ParentRunner.java:71)
            at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
            at org.junit.runners.ParentRunner.access[=12=]0(ParentRunner.java:58)
            at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:268)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
            at cucumber.runtime.junit.ExamplesRunner.run(ExamplesRunner.java:59)
            at org.junit.runners.Suite.runChild(Suite.java:128)
            at org.junit.runners.Suite.runChild(Suite.java:27)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:290)
            at org.junit.runners.ParentRunner.schedule(ParentRunner.java:71)
            at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
            at org.junit.runners.ParentRunner.access[=12=]0(ParentRunner.java:58)
            at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:268)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
            at cucumber.runtime.junit.ScenarioOutlineRunner.run(ScenarioOutlineRunner.java:53)
            at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
            at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:290)
            at org.junit.runners.ParentRunner.schedule(ParentRunner.java:71)
            at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
            at org.junit.runners.ParentRunner.access[=12=]0(ParentRunner.java:58)
            at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:268)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
            at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
            at cucumber.api.junit.Cucumber.runChild(Cucumber.java:95)
            at cucumber.api.junit.Cucumber.runChild(Cucumber.java:38)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:290)
            at org.junit.runners.ParentRunner.schedule(ParentRunner.java:71)
            at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
            at org.junit.runners.ParentRunner.access[=12=]0(ParentRunner.java:58)
            at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:268)
            at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
            at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
            at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
            at cucumber.api.junit.Cucumber.run(Cucumber.java:100)
            at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
            at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
            at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
            at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
            at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
            at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
            at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
            at ✽.Given I check mandatory fields:(steps/scenarios/RAPID-TRT-ASS.feature:5)
Caused by: org.openqa.selenium.WebDriverException: unknown error: cannot get automation extension
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
  (Session info: chrome=57.0.2987.133)
  (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 10.10 seconds
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
System info: host: 'ITEM-72885', ip: '192.168.56.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_66'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9), userDataDir=d:\Profiles\sgrillon\AppData\Local\Temp\scoped_dir4416_8177}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=57.0.2987.133, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=accept}]
Session ID: d187a933403bfcb6f6ca60d5d35a1df5
            ...

你对这个问题有什么想法吗? 提前致谢!

您Chrome自动更新版本。您需要 Chrome Webdriver 的更新版本:

YourRobot\java\src\test\resources\drivers\windows\googlechromebit\chromedriver.exe

好的版本:https://sites.google.com/a/chromium.org/chromedriver/downloads

版本 2.29 的示例 => https://chromedriver.storage.googleapis.com/index.html?path=2.29/

编辑 V4+:

  • 检查您的 Chrome 版本
  • 杀死所有 webdriver 进程
  • 删除本地网络驱动程序
  • 编辑pom.xml

我也有这个问题。正如@sgrillon 所说,您需要更新 chromedriver.exe。 如果无法更新驱动程序,请尝试杀死 运行 chrome 个进程,然后重试。