为什么我会收到硒错误'firefox-bin quit expectedly',无法连接到主机127.0.0.1端口7055 [英] Why am I getting the selenium error 'firefox-bin quit expectedly' and unable to connect to host 127.0.0.1 on port 7055

查看:337
本文介绍了为什么我会收到硒错误'firefox-bin quit expectedly',无法连接到主机127.0.0.1端口7055的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用eclipse在macbook pro上运行selenium 2.25.0。我已经使用文档示例代码创建了一个简单的类。这行上的代码错误:

  WebDriver驱动程序=新的FirefoxDriver(); 

与消息:



无法在45000毫秒之后连接到端口7055上的主机127.0.0.1。 Firefox控制台输出:
dyld:unknown required load command 0x80000022
dyld:unknown required load command 0x80000022



我已经尝试将Firefox从15降级到14 ,10和9,但没有一个工作。



非常感谢任何人可以提供的任何帮助!谢谢!

解决方案

问题原因是,firefox-bin也不会在命令行上启动。这似乎与在OSX 10.5上运行有关。



修复如下:

  cd / Applications / Firefox。 app / Contents / MacOS 
mv firefox-bin firefox-bin.original
ditto --arch i386 firefox-bin.original firefox-bin

这是从这个网页获取的,这有用的答案是: http://www.bangheadonwall.net/?p=296


I am trying to run selenium 2.25.0 on a macbook pro with eclipse. I have created a simple class using the documentation example code. The code errors on this line:

WebDriver driver = new FirefoxDriver();

with the message:

Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: dyld: unknown required load command 0x80000022 dyld: unknown required load command 0x80000022

I have tried downgrading firefox from 15 to 14, 10 and 9, but none of those worked either.

Very grateful for any help anyone can offer! Thanks!

解决方案

Problem turned out to be that firefox-bin wouldn't start on the command line either. It seems to be something to do with running on OSX 10.5.

Fix is as follows:

cd /Applications/Firefox.app/Contents/MacOS
mv firefox-bin firefox-bin.original
ditto --arch i386 firefox-bin.original firefox-bin

This is taken from this webpage which usefully had the answer: http://www.bangheadonwall.net/?p=296

这篇关于为什么我会收到硒错误'firefox-bin quit expectedly',无法连接到主机127.0.0.1端口7055的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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