Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98811

Launch Watir/Selenium Chrome driver binary from an arbitrary location

$
0
0

I want to use Watir to start a chrome for an older version of chrome, say /Application/Google Chrome 30.app

Here's a ref link saying chromedriver expects Chrome install at specific location:

Mac /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome

Here's a ref link for setting up Chrome executable in a non-standard location

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

How can I do that using Watir, given syntax like

driver = Watir::Browser.new :chrome

Thanks!


Viewing all articles
Browse latest Browse all 98811

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>