Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/357.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java selenium 3 firefox使用了错误的媒体查询_Java_Selenium_Firefox_Testing_Geckodriver - Fatal编程技术网

Java selenium 3 firefox使用了错误的媒体查询

Java selenium 3 firefox使用了错误的媒体查询,java,selenium,firefox,testing,geckodriver,Java,Selenium,Firefox,Testing,Geckodriver,我们正在使用Selenium-grid-3将测试工具从Selenium 2.53升级到最新的(3.11.0)Selenium。我们正在使用Jenkins在Chrome和Firefox的从机上通过网格运行场景。 Geckodriver for Firefox不支持Firefox,请用代码试用、相关HTML和错误堆栈跟踪更新问题。谢谢您的回复。我添加了关于这个问题的更新!您错过了错误跟踪。你的话是“在Firefox上运行测试用例绝对不好”。在不好的地方发布日志。添加了错误跟踪,但没有帮助。问题在于,

我们正在使用Selenium-grid-3将测试工具从Selenium 2.53升级到最新的(3.11.0)Selenium。我们正在使用Jenkins在Chrome和Firefox的从机上通过网格运行场景。
Geckodriver for Firefox不支持Firefox,请用代码试用、相关HTML和错误堆栈跟踪更新问题。谢谢您的回复。我添加了关于这个问题的更新!您错过了错误跟踪。你的话是“在Firefox上运行测试用例绝对不好”。在不好的地方发布日志。添加了错误跟踪,但没有帮助。问题在于,由于在低媒体查询中元素不可见(display:none;),因此步骤(assert)不会返回true。
When I open Irista
Then Irista 'Homepage' is loaded

When I sign in to irista with 'xxx' username and 'xxx' password
Then Irista 'Timeline' is loaded

When I open the hosturl with custom ending '/fivehundred'
Then the 'error_500_page' is loaded
And the 'irista main logo' element is 'visible'
    org.openqa.selenium.TimeoutException: Expected condition failed: waiting for com.oce.common.autotest.util.PageUtilBy$$Lambda$129/649053158@7969e045 (tried for 20 second(s) with 500 MILLISECONDS interval) Build info: version: '3.9.1', revision: '63f7b50', time: '2018-02-07T22:25:02.294Z' System info: host: 'OSZ-WS00044', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.13.0-38-generic', java.version: '1.8.0_151' 
Driver info: org.jbehave.web.selenium.RemoteWebDriverProvider$ScreenshootingRemoteWebDriver Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 58.0.2, javascriptEnabled: true, moz:accessibilityChecks: false, moz:headless: false, moz:processID: 15628, moz:profile: C:\Users\osz-brtest01\AppDa..., moz:webdriverClick: true, pageLoadStrategy: normal, platform: XP, platformName: XP, platformVersion: 10.0, rotatable: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, webdriver.remote.sessionid: 9ed1c654-d052-4a5b-b557-14a...} Session ID: 9ed1c654-d052-4a5b-b557-14a737f7216d