Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run WebDriver with Chrome Canary?

Is there a way to tell chromedriver (the webdriver implementation within Chrome) to use Canary, Beta or current production chrome?

like image 998
Paul Irish Avatar asked Dec 06 '25 03:12

Paul Irish


1 Answers

You can ask ChromeDriver to use a Chrome executable in a non-standard location

ChromeOptions options = new ChromeOptions();
options.setBinary("/path/to/other/chrome.exe");

On Mac OS X, this should be the actual binary, not just the app. e.g., /Applications/Google Chrome.app/Contents/MacOS/Google Chrome.

[via chromedriver Capabilities and Switches]

like image 175
Paul Irish Avatar answered Dec 12 '25 09:12

Paul Irish



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!