Web Driver Plugin - Cannot find firefox binary in PATH.

1,029 views
Skip to first unread message

Mike

unread,
Jul 10, 2014, 9:20:51 AM7/10/14
to jmeter-...@googlegroups.com
Hi all,

I'm using Jmeter 2.11, jdk1.7.0_7, Firefox 26.0, WebDriver plugin 1.1.3

Error i faced:
 ERROR - jmeter.threads.JMeterThread: Test failed! org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed.

my Environment variable
%PATH%;D:\Mozilla Firefox\;

* Firefox's folder is in the PATH

Test script that i ran was the one in the webdriver documentation

I faced this issue in maven/Java for webdriver too but there is a workaround which is to manually change the JVM instance System properties that is:

System.setProperty("webdriver.firefox.bin",D\:\\Mozilla Firefox\\Firefox.exe));

Is there a equivalent function as the one above for the Web Driver Sample or is there a workaround for this. 


Any suggestion will be appreciated, Thanks

gli...@gmail.com

unread,
Jul 10, 2014, 10:05:45 AM7/10/14
to jmeter-...@googlegroups.com, inuyas...@gmail.com
Hi Mike,

You can set "webdriver.firefox.bin" by at least 2 ways:

  1. Pass it via "-D" command-line argument as follows" jmeter
    -Dwebdriver.firefox.bin="D:/Mozilla Firefox/firefox.exe"

  2. Or add a line to system.properties file which lives under /bin folder of your JMeter installation 
    webdriver.firefox.bin="d:/Mozilla Firefox/firefox.exe"

See Apache JMeter Properties Customization Guide for comprehensive information on manipulating different JMeter property types. 

Hope this helps. 

gli...@gmail.com

unread,
Jul 10, 2014, 10:17:19 AM7/10/14
to jmeter-...@googlegroups.com, inuyas...@gmail.com, gli...@gmail.com
Apologies, it should go without quotes and trailing ".exe" for Windows systems. 

Correct property would be

 
webdriver.firefox.bin=D:/Mozilla Firefox/firefox





Reply all
Reply to author
Forward
0 new messages