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
ChromeOptions options = new ChromeOptions(); options.setBinary("/path/to/other/chrome/binary");
Regards,
Punkaaj
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.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA9WrsybZ_AW%2BfdPNfG66XpOXZJrc%2BRgF7r5Hi7%2BLbVJe4vRmQ%40mail.gmail.com.