user4848348
user4848348

Reputation:

Standalone chrome.exe connection to selenium test

As you can find at cannot stop Chrome from updating from 43 to 44 I am having problem with chrome 44, as RobW suggested (in comments) i got a stand alone chrome.exe which has the version that I need, but now I do not know how to connect it to my test application which is written by Selenium & JAVA.

Upvotes: 1

Views: 185

Answers (1)

alecxe
alecxe

Reputation: 473873

You need to point the "binary" to your standalone Chrome using ChromeOptions:

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

DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability(ChromeOptions.CAPABILITY, options);

ChromeDriver driver = new ChromeDriver(capabilities);

Upvotes: 0

Related Questions