quarta-feira, 10 de julho de 2013

Cannot find firefox binary in PATH - Selenium Problem

Eclipse configuration issues

Sample Error view

Exception in thread "main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: WIN8
Build info: version: '2.31.0', revision: '1bd294d', time: '2013-02-27 20:53:56'
System info: os.name: 'Windows 8', os.arch: 'amd64', os.version: '6.2', java.version: '1.7.0_09'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.Executable.(Executable.java:69)
at org.openqa.selenium.firefox.FirefoxBinary.(FirefoxBinary.java:59)
at org.openqa.selenium.firefox.FirefoxBinary.(FirefoxBinary.java:55)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:92)
at com.selenium.test.Testing.main(Testing.java:13)


Solution
1. Right click on 'My Computer' and click on 'Properties'.
2. Go to 'Advanced System Settings' and click on 'Advanced' tab
3. Click on 'Environment Variables'.
4. In the 'Environment Variables' dialog box, select 'Path' variable and click on 'Edit' button.
5. Add the firefox.exe path. for e.g., C:\Program Files (x86)\Mozilla Firefox\
6. click on ok. Thatz it.


Please Note

  • Don't add 'firefox.exe' at the end of Path variable. Only the parent folder path should be added.
  • If you are working in Eclipse, restart the eclipse and try.


IN: http://myvedham.blogspot.co.uk/2013/03/cannot-find-firefox-binary-in-path.html

Sem comentários: