Selenium Firefox WebDriver错误 [英] Error with selenium firefox webdriver
问题描述
当我尝试在Selenium中运行测试用例时,出现以下错误.我的系统上安装了Firefox 19.0,并且正在使用selenium-server-standalone-2.32.0.jar
I am getting the following error when I try to run a test case in Selenium. I have Firefox 19.0 installed on my system and I am using selenium-server-standalone-2.32.0.jar
org.openqa.selenium.WebDriverException:无法绑定到锁定端口 7054在45000毫秒内系统信息:操作系统名称:'Windows 7',操作系统名称: 'x86',os.version:'6.1',java.version:'1.6.0_45'驱动程序信息: driver.version:FirefoxDriver位于 org.openqa.selenium.internal.SocketLock.lock(SocketLock.java:92)在 org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:71)
org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_45' Driver info: driver.version: FirefoxDriver at org.openqa.selenium.internal.SocketLock.lock(SocketLock.java:92) at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:71)
我尝试了各种版本的Firefox,但错误仍然存在.这是兼容性问题吗?如果是,是否有任何修复建议?
I have tried various versions of Firefox but the error persists. Is this a compatibility issue? If yes, any suggestions on how to fix it?
谢谢
推荐答案
尝试关闭所有可能使用端口的应用程序,然后重试.或者尝试禁用防火墙/防病毒软件.
Try closing all applications that could potentially use ports and retry. Or try disabling your firewall/antivirus.
也更新webdriver或firefox可能会有帮助.
Also updating webdriver or firefox may help.
这篇关于Selenium Firefox WebDriver错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!