接收org.openqa.selenium.WebDriverException:无法在PATH中使用Webdriver播放在Selenium IDE中运行测试中找到firefox二进制文件 [英] Receiving org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH running tests in Selenium IDE with Webdriver playback

查看:139
本文介绍了接收org.openqa.selenium.WebDriverException:无法在PATH中使用Webdriver播放在Selenium IDE中运行测试中找到firefox二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 导致:我试图在Selenium IDE中使用Webdriver播放器运行测试。 org.openqa.selenium.WebDriverException:在PATH中找不到firefox二进制文件。确保安装了Firefox。操作系统似乎是:VISTA 
构建信息:版本:'2.32.0',修订:'6c40c18',时间:'2013-04-09 17:22:56'
系统信息:操作系统。 name:'Windows 7',os.arch:'amd64',os.version:'6.1',java.version:'1.6.0_39'
驱动程序信息:driver.version:FirefoxDriver
at org .openqa.selenium.firefox.internal.Executable。(Executable.java:72)
at org.openqa.selenium.firefox.FirefoxBinary。(FirefoxBinary.java:59)
at org.openqa.selenium 。(FirefoxBinary.java:55)
在org.openqa.selenium.firefox.FirefoxDriver.getBinary(FirefoxDriver.java:175)
在org.openqa.selenium.firefox.FirefoxDriver。 (FirefoxDriver.java:100)
... 14更多

错误提到找不到firefox二进制PATH。我更新了路径中的Firefox二进制文件,但仍然收到相同的错误消息。在测试用例中使用的函数是一个自定义的case和waitforelementpresent。

这是我的路径中的变量值C:\ Program Files(x86)\\ \\ FireFirefox ESR 17



我该如何解决这个问题? 解决方案

我更新了环境变量路径,但它并没有为我工作。最后不要添加firefox.exe E:\installed\Firefox Mozilla。并重新启动日食。它为我工作。


I keep on getting the following errors when I attempt to run tests in Selenium IDE with Webdriver playback.

Caused by: org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: VISTA
Build info: version: ’2.32.0′, revision: ’6c40c18′, time: ’2013-04-09 17:22:56′
System info: os.name: ‘Windows 7′, os.arch: ‘amd64′, os.version: ’6.1′, java.version: ’1.6.0_39′
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.Executable.(Executable.java:72)
at org.openqa.selenium.firefox.FirefoxBinary.(FirefoxBinary.java:59)
at org.openqa.selenium.firefox.FirefoxBinary.(FirefoxBinary.java:55)
at org.openqa.selenium.firefox.FirefoxDriver.getBinary(FirefoxDriver.java:175)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:100)
… 14 more

The error mentions not finding the firefox binary in PATH. I updated the Firefox binary in the path and I still receive the same error message. The functions used in the test case were one custom case and waitforelementpresent.

This is the variable value that I have in my path C:\Program Files (x86)\Firefox ESR 17

How can I resolve this?

解决方案

i updated the enviroment variable path but it didn't work for me. Don't add firefox.exe in the end e.g. E:\installed\Firefox Mozilla. And restart the eclipse. It worked for me.

这篇关于接收org.openqa.selenium.WebDriverException:无法在PATH中使用Webdriver播放在Selenium IDE中运行测试中找到firefox二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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