- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在使用 selenium 在 Java 上运行测试。
当我运行样本测试时。我得到以下内容
Build info: version: '2.47.2', revision: '4d972c01cab1304452627f837654326a11eb92fe', time: '2015-09-24 09:17:17'
System info: host: 'lima', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.2.0-32-generic', java.version: '1.8.0_45'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:134)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:276)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:116)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:221)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:133)
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
addons.manager DEBUG Provider finished startup: PluginProvider
1443602965766 addons.manager DEBUG Completed startup sequence
1443602966724 DeferredSave.extensions.json DEBUG Save changes
1443602966725 addons.xpi DEBUG Updating XPIState for {"id":"fxdriver@googlecode.com","syncGUID":"W4MC2I4gSaDP","location":"app-profile","version":"2.47.1","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Firefox WebDriver","description":"WebDriver implementation for Firefox","creator":"Simon Stewart","homepageURL":null},"visible":true,"active":false,"userDisabled":false,"appDisabled":false,"descriptor":"/tmp/anonymous2411601304142570791webdriver-profile/extensions/fxdriver@googlecode.com","installDate":1443602959000,"updateDate":1443602959000,"applyBackgroundUpdates":1,"bootstrap":false,"size":8234871,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":true,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"3.0","maxVersion":"66.*"}],"targetPlatforms":[{"os":"Darwin","abi":null},{"os":"SunOS","abi":null},{"os":"FreeBSD","abi":null},{"os":"OpenBSD","abi":null},{"os":"WINNT","abi":"x86-msvc"},{"os":"Linux","abi":null}],"multiprocessCompatible":false,"signedState":0}
1443602966725 addons.xpi DEBUG getModTime: Recursive scan of fxdriver@googlecode.com
1443602966736 DeferredSave.extensions.json DEBUG Save changes
1443602966739 DeferredSave.extensions.json DEBUG Save changes
1443602966739 addons.xpi DEBUG Updating XPIState for {"id":"fxdriver@googlecode.com","syncGUID":"W4MC2I4gSaDP","location":"app-profile","version":"2.47.1","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Firefox WebDriver","description":"WebDriver implementation for Firefox","creator":"Simon Stewart","homepageURL":null},"visible":true,"active":false,"userDisabled":false,"appDisabled":true,"descriptor":"/tmp/anonymous2411601304142570791webdriver-profile/extensions/fxdriver@googlecode.com","installDate":1443602959000,"updateDate":1443602959000,"applyBackgroundUpdates":1,"bootstrap":false,"size":8234871,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":true,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"3.0","maxVersion":"66.*"}],"targetPlatforms":[{"os":"Darwin","abi":null},{"os":"SunOS","abi":null},{"os":"FreeBSD","abi":null},{"os":"OpenBSD","abi":null},{"os":"WINNT","abi":"x86-msvc"},{"os":"Linux","abi":null}],"multiprocessCompatible":false,"signedState":0}
1443602966740 DeferredSave.extensions.json DEBUG Save changes
1443602970172 addons.manager DEBUG Starting provider: <unnamed-provider>
1443602970172 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1443602970172 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1443602971358 DeferredSave.extensions.json DEBUG Write succeeded
1443602971358 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 17
1443602971359 DeferredSave.extensions.json DEBUG Starting timer
1443602971422 DeferredSave.extensions.json DEBUG Starting write
1443602971426 addons.repository DEBUG No addons.json found.
1443602971427 DeferredSave.addons.json DEBUG Save changes
1443602971433 DeferredSave.addons.json DEBUG Starting timer
1443602971450 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1443602971450 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1443602971450 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1443602971477 DeferredSave.extensions.json DEBUG Write succeeded
1443602971487 DeferredSave.addons.json DEBUG Starting write
1443602971502 DeferredSave.addons.json DEBUG Write succeeded
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:122)
... 44 more
Results :
Failed tests: test(test.SampleTest): Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows: (..)
我的依赖版本是
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.47.2</version>
</dependency>
Firefox 版本为 41.0b8
希望当firefox和selenium版本匹配时这个问题能够得到解决。
谁能告诉我哪个selenium版本与firefox-41.0b8版本匹配
最佳答案
我认为最新版本的 selenium 不支持 firefox 41.0 beta 版本。此外,您指的是测试版本而不是稳定版本。将您的浏览器降级到最新版本的 selenium 支持的版本。检查selenium的变更日志
截至本文,Selenium v2.47
支持 firefox v39
。希望对您有所帮助。
关于java - 无法连接到端口 7055 上的二进制 FirefoxBinary(/usr/bin/firefox),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32862055/
这个方法有什么意义FirefoxBinary#startProfile ? 如何控制使用上述方法打开的浏览器? FirefoxBinary binary = new FirefoxBinary(new
星期三,我的代码成功了。我今天回来,我的代码不再有效。没有人碰过它,包括我自己。我收到以下错误消息: 'FirefoxBinary' object has no attribute '_get_fir
我正在运行一些 Selenium 测试。当我直接从 Eclipse 启动它们时,一切正常。但是当我通过 Maven 启动它们时,会出现以下异常: org.openqa.selenium.WebDriv
我正在尝试使用 webdriver 启动 Firefox 实例,但我想指示它使用某些 xvfb 显示。不过,我认为我的代码有问题 FirefoxBinary ffox = new Firefox
我正在使用 selenium 在 Java 上运行测试。 当我运行样本测试时。我得到以下内容 Build info: version: '2.47.2', revision: '4d972c01cab
FirefoxBinary 中的方法 startProfile(FirefoxProfile, File, String) 是否已弃用? 我已经在我的java项目中导入了最新的selenium jar
当我在 Eclipse 中运行 Selenium-Webdriver 脚本时,它工作正常。但是相同的脚本在服务器机器的 jenkins 中运行,它给出了以下错误: 18:00:34 ---------
我正在使用 FireFox 18 和 Selenium 2.29.0。运行测试时出现异常 无法连接到端口 7056 上的二进制 FirefoxBinary(C:\Program Files (x86)
使用Selenium 3.1.0,firefox最新版本72.0,默认firefox驱动2.53.1 这是我的代码 System.setProperty("webdriver.gecko.driver
我是一名优秀的程序员,十分优秀!