Skip to content
cplim edited this page Nov 28, 2012 · 2 revisions

Whilst firefox should work out of the box, Chrome requires a little more tweaking to work with WebDriver. According to the WebDriver page, a separate Chrome server instance (called ChromeDriver) needs to be used to communicate with the browser. The ChromeDriver is platform and chrome version dependent, so ensure that the correct version is downloaded for your OS and Chrome version.

Setup ChromeDriver

First download the ChromeDriver suitable for your OS and browser version. When starting up JMeter, you must specify the location of the chromedriver through a system property. However, to do so JMeter must be run as a standalone Java process so that the system property can be passed to the Java process. This means that JMeter needs to be built and packaged.

% ant package # create JMeter binary
...
% bin/jmeter.sh -Dwebdriver.chrome.driver={your chromedriver location} # runs the GUI with system property

Note: At the time of writing, the Mac chromedriver does not seem to work properly when running from within JMeter. Will need further investigation.

Clone this wiki locally