2017-10-09 64 views
0

我最近更新我的Firefox瀏覽器版本56(64位)。從這個更新我得到webdriver異常:超時。的webdriver - 超時未從Firefox 56(64位)工作更新

此前它工作正常。我的硒的版本是3.4

請參見下面的錯誤跟蹤。

com.myCompany.project1.init.Init.initWebDriverMethod(Init.java:125)。

代碼此行是

driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); 

配置失敗:@BeforeSuite initWebDriverMethod org.openqa.selenium.WebDriverException:超時生成信息:版本: '3.4.0',修訂版:「未知」時間: '未知' 系統信息:主機: 'MACHINE1',IP: 'MY_IP_ADDRESS',os.name: 'Windows 7的',os.arch: 'AMD64',os.version: '6.1',JAVA .version: '1.8.0_51' 驅動信息: org.openqa.selenium.firefox.FirefoxDriver能力 [{MOZ:輪廓= C:\ users \ name \ AppData \ Local \ Temp \ rust_mozprofile.3BducR9iLAM9, rotate = false,timeouts = {implicit = 0.0,pageLoad = 300000.0, script = 30000.0},pageLoadStrategy = normal,moz:headless = false, platform = ANY ,specificationLevel = 0.0,MOZ:accessibilityChecks =假, acceptInsecureCerts =真,browserVersion = 56.0,platformVersion = 6.1, MOZ:的ProcessID = 6108.0,browserName =火狐,javascriptEnabled =真, platformName = windows_nt}]會話ID: 817591e9 -ceb0-4641-a567-0c85a4b32b7a在 sun.reflect.NativeConstructorAccessorImpl.newInstance0(本機方法) 在sun.reflect.NativeConstructorAccessorImpl.newInstance(未知 源)在 sun.reflect.DelegatingConstructorAcce ssorImpl.newInstance(未知 來源)在java.lang.reflect.Constructor.newInstance(來源不明) 在 org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:150) 在 組織。 openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:115) 在 org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:45) 在 org.openqa.selenium。 remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164) 在 org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82) 在 org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637) 在 org.openqa.selenium.remote.RemoteWebDriver $ RemoteWebDriverOptions $ RemoteTimeouts.implicitlyWait(RemoteWebDriver.java:868) 在com.myCompany.project1 .init.Init.initWebDriverMethod(Init.java:125) 在sun.reflect.NativeMethodAccessorImpl.invoke0(本機方法)維持在 sun.reflect.DelegatingMethodAccessorImpl.invoke sun.reflect.NativeMethodAccessorImpl.invoke(來源不明)(未知源)在 java.lang.reflect.Method.invoke(來源不明)在 org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108) 在 org.testng.internal.Invoker.invokeConfigurationMethod(祈求。 JA VA:523) 在org.testng.internal.Invoker.invokeConfigurations(Invoker.java:224) 在org.testng.internal.Invoker.invokeConfigurations(祈求。的java:146) 該org.testng.SuiteRunner.privateRun(SuiteRunner.java:326),該 org.testng.SuiteRunner.run(SuiteRunner.java:289),該 org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java: 52) org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86),該 org.testng.TestNG.runSuitesSequentially(TestNG.java:1301),該 org.testng.TestNG.runSuitesLocally(TestNG.java:1226)該 org.testng.TestNG.runSuites(TestNG.java:1144),該 org.testng.TestNG.run(TestNG.java:1115),該 org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132) 該org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:230) 該org.testng.remote.RemoteTestNG.mai N(RemoteTestNG.java:76)

+0

可以粘貼一些代碼 – iamsankalp89

+0

你更新WebDrive的版本呢? –

+0

@AlexeyR。謝謝。更新兩個硒服務器獨立-3.6.0之後,現在做工精細,壁虎司機v0.19.0-Win64平臺和硒的Java 3.6.0。 –

回答

2

它的硒腳本使用Webdrive 2翻譯說明瀏覽器可以理解的格式,當你更新瀏覽器,你也應該確保你正在使用最新Webdrive應用程序(或您的特殊測試代碼和瀏覽器)之間的調停的整個產業鏈。