硒化物测试挂在Firefox中

时间:2016-12-28 10:16:27

标签: selenium firefox automated-tests coded-ui-tests selenide

我在Firefox 46版中运行Selenide测试时遇到问题。当测试单独运行时,一切正常。但是当我在课堂上运行所有测试方法时,它会挂起以下步骤:

addons.productaddons INFO sending request to: https://aus5.mozilla.org/update/3/GMP/46.0/20160421124000/WINNT_x86_64-msvc-x64/en-US/release/Windows_NT%206.1.1.0%20(x64)/default/default/update.xml
addons.productaddons INFO Completed downloading document
addons.productaddons INFO Downloading from https://cdmdownload.adobe.com/firefox/win/x64/primetime_gmp_win_x64_gmc_40673.zip to C:\Users\hunar_letsko\AppData\Local\Temp\tmpaddon
addons.productaddons INFO Downloading from http://ciscobinary.openh264.org/openh264-win64-0410d336bb748149a4f560eb6108090f078254b1.zip to C:\Users\hunar_letsko\AppData\Local\Temp\tmpaddon
addons.manager INFO Skipping background update check
DeferredSave.extensions.json DEBUG Save changes
DeferredSave.extensions.json DEBUG Starting timer
DeferredSave.extensions.json DEBUG Starting write
DeferredSave.extensions.json DEBUG Write succeeded

还有一点需要注意:当测试方法运行超过3小时时,连接超时会失败:

org.openqa.selenium.WebDriverException: java.net.SocketTimeoutException: Read timed out
Build info: version: '3.0.0', revision: '350cf60', time: '2016-10-13 10:48:57 -0700'
System info: host: 'EPBYMINW2815', ip: '10.6.9.56', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_92'
Driver info: driver.version: RemoteWebDriver
selenide.url: app_url"
selenide.baseUrl: http://localhost:8080

 at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:91)
 at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
 at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:322)
 at org.openqa.selenium.remote.RemoteWebDriver$RemoteNavigation.to(RemoteWebDriver.java:902)
 at com.codeborne.selenide.impl.Navigator.navigateToAbsoluteUrl(Navigator.java:69)
 at com.codeborne.selenide.impl.Navigator.open(Navigator.java:31)
 at com.codeborne.selenide.Selenide.open(Selenide.java:81)
 at com.codeborne.selenide.Selenide.open(Selenide.java:55)
 at

其中app_url是我的应用程序的网址。

先谢谢你们的帮助,伙计们!

1 个答案:

答案 0 :(得分:1)

你需要降级Selenide。 Selenide 4.0在Firefox上运行不佳。