我使用的是Selenium 3.4.x和Chrome版本63.0.3239.108以及Chromedriver 2.33。
升级到Selenium 3.8.0和Chromedriver 2.34后,我开始出现以下错误。我不确定是什么引起了它。
这是我得到的错误......
org.openqa.selenium.WebDriverException:未知错误:无法确定未知错误的加载状态:缺失或无效' entry.level' (会话信息:铬= 63.0.3239.108)(驱动程序信息:chromedriver = 2.25.426923(0390b88869384d6eb0d5d09729679f934aab9eed),平台= Windows NT的6.1.7601 SP1 x86_64的)(警告:服务器未提供任何信息栈跟踪)命令持续时间或超时: 951毫秒构建信息:版本:'未知',修订版:'未知',时间:'未知'系统信息:主机:' ITS154810C1310',ip:' 10.1.30.10',os.name:' Windows 7',os.arch:' amd64',os.version:' 6.1',java.version:' 1.8.0_111-1-ojdkbuild'驾驶员信息:org.openqa.selenium.chrome.ChromeDriver能力[{applicationCacheEnabled =假,可旋转=假,mobileEmulationEnabled =假,networkConnectionEnabled =假,铬= {chromedriverVersion = 2.25.426923(0390b88869384d6eb0d5d09729679f934aab9eed),userDataDir = C:\用户\ spatel \应用程序数据\本地的\ Temp \ scoped_dir7472_17124},takesHeapSnapshot = TRUE,pageLoadStrategy =正常,databaseEnabled =假,handlesAlerts = TRUE,hasTouchScreen =假,版本= 63.0.3239.108,平台= XP,browserConnectionEnabled =假,nativeEvents = TRUE,acceptSslCerts = true,locationContextEnabled = true,webStorageEnabled = true,browserName = chrome,takesScreenshot = true,javascriptEnabled = true,cssSelectorsEnabled = true}]会话ID:7074866f88acf5e28212c15e3ee646e7 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl .newInstance(NativeConstructorAccessorImpl.java:62)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAcce) ssorImpl.java:45)在org.openqa.selenium.remote的org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:215)的java.lang.reflect.Constructor.newInstance(Constructor.java:423)中在org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:671)在org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:272).ErrorHandler.throwIfResponseFailed(ErrorHandler.java:167)在在samp.registration.SignInPage.navigateToSignInPage(SignInPage.java:150)上的samp.pageobjects.PWSPagesHelper.clickWithRetryOnXpathKey(PWSPagesHelper.java:136)上的org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:82) .registrationTests.SignInStaticContentTests.navigateToSignInPage(SignInStaticContentTests.java:58)在samp.registrationTests.SignInStaticContentTests.si_P00A1(SignInStaticContentTests.java:69)在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl .java:62)a吨sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)在java.lang.reflect.Method.invoke(Method.java:498)在org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)在org.testng.internal.Invoker.invokeMethod(Invoker.java:643)在org.testng.internal.Invoker.invokeTestMethod(Invoker.java:820)在org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1128)在在org.testng.TestRunner.privateRun(TestRunner.java:782)org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)在org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)在org.testng.TestRunner.run(TestRunner.java:632)在org.testng.SuiteRunner.runTest(SuiteRunner.java:366)在org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)在org.testng.SuiteRunner .privateRun(SuiteRunner.java:319)org.testng.SuiteRunner.run(SuiteRunner.java:268)atg.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)atg.test ng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)在org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)在org.testng.TestNG.runSuitesLocally(TestNG.java:1169)在org.testng.TestNG.run (TestNG.java:1064)在org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)在org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)在org.testng.remote.RemoteTestNG。主(RemoteTestNG.java:81)