Run Web driver on older version of chrome

1,251 views
Skip to first unread message

Ashish b lal

unread,
May 25, 2016, 12:57:53 PM5/25/16
to seleniu...@googlegroups.com
HI,
I have a window 7 system  in which latest chrome version is installed. I have downloaded  chrome 44 version.I want to run web driver on this old version.
Please let me know  how i can run.

--
Hope to hear soon from you.
    
Thanks & Regards,
Ashish.B.LAL

Shawn McCarthy

unread,
May 25, 2016, 1:47:14 PM5/25/16
to Selenium Users

Punkaaj Chavaan

unread,
May 26, 2016, 5:13:03 AM5/26/16
to Selenium Users
I believe, this should help you:

Map<String, Object> chromeOptions = new Map<String, Object>();
chromeOptions.put("binary", "/usr/lib/chromium-browser/chromium-browser");
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);
WebDriver driver = new ChromeDriver(capabilities);

Regards,
Punkaaj
my blog

Punkaaj Chavaan

unread,
May 26, 2016, 5:18:27 AM5/26/16
to Selenium Users
Here's more easier option:

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

Regards,
Punkaaj



On Wednesday, May 25, 2016 at 10:27:53 PM UTC+5:30, Ashish b lal wrote:

Ashish b lal

unread,
May 27, 2016, 5:46:09 AM5/27/16
to seleniu...@googlegroups.com
I have tried with    below code but its fail , saying binary not present

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

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/6caf807c-6eb4-4842-baff-5bf5a3101b99%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

punkaaj chavaan

unread,
May 27, 2016, 5:59:26 AM5/27/16
to seleniu...@googlegroups.com
Did you tried using the other option I mentioned -

Map<String, Object> chromeOptions = new Map<String, Object>();
chromeOptions.put("binary", "/usr/lib/chromium-browser/chromium-browser");
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);
WebDriver driver = new ChromeDriver(capabilities);

Regards,
Punkaaj

--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/1_YAhwVjWEY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.

To post to this group, send email to seleniu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages