2017-10-09 63 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应用程序(或您的特殊测试代码和浏览器)之间的调停的整个产业链。