Selenium WebDriver - Firefox - 无法在45000毫秒内绑定到锁定端口 [英] Selenium WebDriver - Firefox - Unable to bind to locking port within 45000 ms

查看:172
本文介绍了Selenium WebDriver - Firefox - 无法在45000毫秒内绑定到锁定端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让Firefox运行Selenium测试。我正在使用C#。

  new OpenQA.Selenium.Firefox.FirefoxDriver(); 

我也试过了配置文件:

  FirefoxProfile profile = new FirefoxProfile(@E:\ ... \FirefoxProfile); 
new OpenQA.Selenium.Firefox.FirefoxDriver();

错误信息:

无法在45000毫秒内绑定到锁定端口7054



我甚至尝试卸载包括配置文件的Firefox并重新安装。没有帮助。






供参考:我有一个关于3硒驱动程序的问题。我试图把问题分成多个,所以讨论更容易。原文:
Selenium WebDriver - 没有驱动程序正在为我工​​作

一些关于调试的提示:

找到最快捷的方法来测试问题是否存在,通过浏览到

pre $ lt; code> http:// localhost:4444 / wd / hub /static/resource/hub.html

然后尝试在那里创建一个firefox会话。



FF 18.0和Selenium server 2.28.0(本文发布时是最新版本)的问题。我确信Windows防火墙不会阻塞Selenium服务器,然后重新启动机器 - 哪一个技巧。所以我认为罗斯·拉森是正确的。

I'm trying to get Selenium tests running with Firefox. I'm using C#.

new OpenQA.Selenium.Firefox.FirefoxDriver();

I also tried it with a profile set:

FirefoxProfile profile = new FirefoxProfile(@"E:\...\FirefoxProfile"); 
new OpenQA.Selenium.Firefox.FirefoxDriver();

Error I'm getting:

Unable to bind to locking port 7054 within 45000 ms

I even tried uninstalling Firefox including profiles and re-installing again. Didn't help.


FYI: I have a question concerning 3 selenium webdrivers. I'm trying to split the question into multiple so the discussion is easier. Original: Selenium WebDriver - No driver is working for me

解决方案

Some tips on debugging this:

I found the quickest way to test if the problem exists, is by browsing to

http://localhost:4444/wd/hub/static/resource/hub.html

and then trying to create a firefox session there.

I had the issue with FF 18.0 and Selenium server 2.28.0 (the latest releases at the time of writing). I made sure Windows Firewall wasn't blocking the Selenium server and then rebooted the machine - which did the trick. So I assume Ross Larson is right.

这篇关于Selenium WebDriver - Firefox - 无法在45000毫秒内绑定到锁定端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆