gpt4 book ai didi

Selenium WebDriver 无法绑定(bind)到锁定端口

转载 作者:行者123 更新时间:2023-12-01 22:37:38 25 4
gpt4 key购买 nike

我是 selenium 的新手。我正在运行测试用例,但出现以下异常:

org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
Build info: version: '2.28.0', revision: '18309', time: '2012-12-11 20:21:18'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0'
Driver info: driver.version: FirefoxDriver
Command duration or timeout: 46.68 seconds
Build info: version: '2.28.0', revision: '18309', time: '2012-12-11 15:53:30'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0'
Driver info: org.openqa.selenium.remote.RemoteWebDriver


at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:187)

我已经安装了 firefox 18 版,并尝试了很多解决方案,但仍然出现相同的错误。请帮助我。提前致谢。

最佳答案

根据changelist , FF18自WebDriver 2.29.0版本开始支持。
所以在这里查看最新版本: http://docs.seleniumhq.org/download/

或使用直接链接:selenium.googlecode.com/files/selenium-java-2.33.0.zip

关于Selenium WebDriver 无法绑定(bind)到锁定端口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14957015/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com