-
Notifications
You must be signed in to change notification settings - Fork 88
Chrome browser automation
Daniel Gempesaw edited this page Jul 19, 2014
·
7 revisions
- Install the Chrome browser (in default location preferably)
- Get the Chrome server from http://code.google.com/p/chromedriver/downloads/list. Look for a file named chromedriver_win_XXXX.zip, where XXXX is the version number (if you're not on windows, look for appropriately named file).
- Extract chromedriver.exe in to the directory where your selenium-server-standalone jar file is.
- cd to that directory in command line & type:
java -Dwebdriver.chrome.driver="chromedriver.exe" -jar selenium-server-standalone-2.20.0.jar
- In your script, pass 'browser_name' as 'chrome' for desired capabilities. for e.g.
my $driver = new Selenium::Remote::Driver('browser_name' => 'chrome');
my $driver = Selenium::Remote::Driver->new(
desired_capabilities => {
chromeOptions => {
excludeSwitches => [ 'ignore-certificate-errors' ]
}
}
);