Selenium 2.51 WebDriver C# 无法在 Windows 7 X64 上打开 Firefox
我能够让 Firefox 在 Selenium v2.0.50727 上加载,以使用 C# .net3.5 打开 Firefox
但是无法能够让Firefox在Selenium 2.5.1上加载,它只是挂起(在C#中)强> .net3.5/net.4)。我在事件日志中看不到任何内容。
My setup: Windows 7 x64 OS Firefox 3.6.20 Tried both .net40 and .net35 in Selenium 2.5.1 but no luck used platform x86 with platform target any cpu for .net40 used platform x86 with platform target x86 for .net35 Note: I was able to get Internet Explorer to work.
关于如何调试这个有什么建议吗?或者修复?
I am able to get Firefox to load on Selenium v2.0.50727 to open Firefox using C# .net3.5
but NOT able to get Firefox to load on Selenium 2.5.1, it just hangs (in both C# .net3.5/net.4). I see nothing in the event log.
My setup: Windows 7 x64 OS Firefox 3.6.20 Tried both .net40 and .net35 in Selenium 2.5.1 but no luck used platform x86 with platform target any cpu for .net40 used platform x86 with platform target x86 for .net35 Note: I was able to get Internet Explorer to work.
Any suggestions on how to debug this? or a fix?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚在 xpath 上发布了一个问题,并注意到了您的帖子,因为我使用的是几乎相同的设置。关键的不同是我正在运行 FF6.0 - 但除此之外我运行相同的 OS/.net 和 selenium 版本。当然,这对我来说很容易说,但它确实可以在我的机器上运行!
我想到了两个想法。我使用 VS2010 NuGet 包管理器选择了 Selenium,因此会自动添加引用。因此,另外添加了 Ionic.zip v2.0.50727、Newtonson.json v4.0.30319 引用 - 我确信如果这些不存在,您的项目将无法编译,但一个想法...
此外 http://code.google.com/p/selenium/wiki/FirefoxDriver 它提到Selenium 会在 FF exe 的预定义位置中查找...所以如果您的安装不同,这可能会导致问题(我不确定您如何更改它..) - 我会认为是某种异常而不是比“挂起”会被提出,但只是一个想法!
I've just posted a question on xpath and noticed your post since I'm using a near identical setup. The key different being I'm running FF6.0 - but otherwise im running the same OS/.net and selenium versions. And of course, easy for me to say but it does work on my machine!
Two thoughts came to mind. I picked up Selenium using the VS2010 NuGet package manager so references were automatically added. So Ionic.zip v2.0.50727, Newtonson.json v4.0.30319 references were added in addition - I'm sure if these were not present your project wouldn't compile but a thought...
Also http://code.google.com/p/selenium/wiki/FirefoxDriver it mentions that Selenium looks in a predefined location for the FF exe... so if your installation was different could this perhaps cause a problem (I'm not immediately sure how you change this..) - I would have thought an exception of some sort rather than a 'hang' would be raised but just a thought!
它会在文件夹 C:/Program Files/ 中查找,如果您只是将整个 Firefox 安装移动到 Program Files 中,它就可以工作。
我在 Windows 7 和 Firefox 7 上遇到了问题,只需将整个目录剪切并粘贴到 Program Files 中,它就可以正常工作。
It looks in the folder C:/Program Files/ If you just move your entire installation of firefox to program files it will work.
I had the issue on windows 7 with firefox 7 and just cut and paste the whole directory into Program Files and it's working fine.