2017-10-09 7 views
0

私は最近firefoxブラウザをバージョン56(64ビット)にアップデートしました。このアップデートから、Webdriverの例外が発生しました:タイムアウト。Webdriver - Firefox 56(64ビット)アップデートで動作しないタイムアウト

以前は正常に動作していました。私のセレンのバージョンは3.4です

以下のエラートレースを参照してください。

com.myCompany.project1.init.Init.initWebDriverMethod(Init.java:125)。 @BeforeSuite initWebDriverMethod org.openqa.selenium.WebDriverException:タイムアウトが情報をビルドします。バージョン: '3.4.0'、リビジョン:「未知この行の

コードは

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

失敗したコンフィギュレーションであります'、' unknown 'システム情報:ホスト: 'マシン1 '、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:profile = C:\ユーザーの名前\ AppData \ Local \ Temp \ rust_mozprofile.3BducR9iLAM9,回転可能= false、タイムアウト= {暗黙= 0.0、pageLoad = 300000.0、 スクリプト= 30000.0}、pageLoadStrategy = normal、moz:headless = false、 プラットフォーム= ANY 、specificationLevel = 0.0、MOZ:accessibilityChecks =偽、 acceptInsecureCerts = TRUE、browserVersion = 56.0、platformVersion = 6.1、 MOZ:PROCESSID = 6108.0、browserName = Firefoxの、javascriptEnabled =真、 platformName = windows_nt}]セッションID: 817591e9 sun.reflect.DelegatingConstructorAcceでsun.reflect.NativeConstructorAccessorImpl.newInstanceで sun.reflect.NativeConstructorAccessorImpl.newInstance0(ネイティブメソッド) (不明 出典)で-ceb0-4641-a567-0c85a4b32b7a org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:150) 組織で でjava.lang.reflect.Constructor.newInstance(不明なソース) でssorImpl.newInstance(不明 出典)。 openqa.selenium.remote.http.W3CHttpResponseCodec.decode org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:45)で(W3CHttpResponseCodec.java:115) org.openqa.seleniumで 。 でremote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164) でorg.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82) com.myCompany.project1で org.openqa.selenium.remote.RemoteWebDriver $ RemoteWebDriverOptions $ RemoteTimeouts.implicitlyWait(RemoteWebDriver.java:868)でorg.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637) sun.reflect.DelegatingMethodAccessorImpl.invoke(不明で sun.reflect.NativeMethodAccessorImpl.invoke(不明なソース)でsun.reflect.NativeMethodAccessorImpl.invoke0(ネイティブメソッド)で.init.Init.initWebDriverMethod(Init.java:125) org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108) org.testng.internal.Invoker.invokeConfigurationMethod(実行者で で java.lang.reflect.Method.invoke(不明なソース)のソース)。ジャva:523) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:224) at org.testng.internal.Invoker.invokeConfigurations(Invoker。java:146) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:326) org.testng.SuiteRunner.run(SuiteRunner.java:289) org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java: 5235)at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)at org.testng.TestNG.runSuitesLocally(TestNG.java:1226) org.testng.TestNG.runSuites(TestNG.java:1144) org.testng.TestNG.run(TestNG.java:1115)at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:230) at org.testng.remote.RemoteTestNG.mai N(RemoteTestNG.java:76)

+0

さらにコードを貼り付けることができます – iamsankalp89

+0

webdriverのバージョンも更新しましたか? @AlexeyR。 –

+0

ありがとう。 selenium-server-standalone-3.6.0、geckodriver-v0.19.0-win64、およびselenium-java-3.6.0にアップデートした後、正常に動作します。 –

答えて

2

サインセレンスクリプトは、ブラウザを更新するときにも、あなたが最新のwebdriverをアプリ(または使用していることを確認する必要があり、ブラウザが理解できる形式に指示を変換するためにwebdriverをを使用していますあなたの特定のテストコードとブラウザの間のメディエータの全チェーン)。

関連する問題