Reputation: 57
I am trying to set up webdriver sampler in Jmeter in my company's network. I have tried all the suggestions from the link [1]: https://www.blazemeter.com/blog/webdriver-sampler-your-top-ten-questions-answered
But facing the error can not find chrome binary and browser has not been configured. Please ensure at least one webdiver is configured for thread group.
I have also specified the chromedriver path in chromedriver config.
Jmeter version: 5.1.1 Jmeter Plug-in: 1.3 Java version: 1.8
Can someone please help to resolve the issue?
Upvotes: 0
Views: 1337
Reputation: 57
The issue is resolved after copying chrome/firefox binary to the default location: C:\Users\XXXXXX\AppData\Local and also specifying the binary using jmeter --Dwebdriver.firefox.bin="C:\Users\XXXXXX\AppData\Local\Mozilla Firefox\firefox.exe".
The root cause of the problem was the binaries are not installed in default location.
Upvotes: 0
Reputation: 168157
C'mon, if you're going to automate Chrome browser - you need to have it installed, aren't you?
So given you install Chromium or one of its derivatives (including Google Chrome) - you will be able to run your test (hopefully)
If you already have Chrome installed - make sure that the chrome.exe
or whatever is the appropriate binary for your operating system is in your operating system PATH
For Firefox you need to provide webdriver.gecko.driver
property pointing to your geckodriver binary either via system.properties file (lives in "bin" folder of your JMeter installation) or via -D
command-line argument like:
jmeter -Dwebdriver.gecko.driver=c:/somefolder/geckodriver.exe -t testplan.jmx
Upvotes: 0