How to run selenium tests on Chrome beta or Chrome Canary browsers.
Solution : You can ask ChromeDriver to use a Chrome executable in a non-standard location.
Syntax
ChromeOptions options = new ChromeOptions();
options.setBinary(“/path/to/other/chrome.exe”);
Now for example you want to run test in chrome beta. you can download chrome beta and get binary location of your chrome beta. for example you got it like : C:\\Program Files (x86)\\Google\\Chrome Beta\\Application\\chrome.exe
Syntax:
ChromeOptions options = new ChromeOptions();
options.setBinary(“C:\\Program Files (x86)\\Google\\Chrome Beta\\Application\\chrome.exe”);
Same way for chrome canary
Syntax:
ChromeOptions options = new ChromeOptions();
options.setBinary(“C:\\Users\\Administrator\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe”);
Thanks for visiting this. hope it useful.