How to specify chrome browser binary path for chromedriver

Hi Katalon Support,

One of our requirement is to be able to test our app with The Beta Chrome Browser version. While this could be achieved with following code in regular Java based frameworks, I am wondering how to achieve this with Katalon Studio?

ChromeOptions optionsBeta = new ChromeOptions();
optionsBeta.setBinary(“path\\to\\chrome\\browser\\beta\\binary”);

WebDriver driver = new ChromeDriver(optionsBeta);

Requesting guidance on this topic.

Thanks.

If this works in Java, it will work in Groovy/Katalon. The only think you have to do is to switch drivers and use your custom driver as default one.

ChromeOptions optionsBeta = new ChromeOptions();optionsBeta.setBinary("path\\to\\chrome\\browser\\beta\\binary");
System.setProperty("webdriver.chrome.driver", "C:\\path\\to\\chromedriver.exe")WebDriver driver = new ChromeDriver(optionsBeta);// the magic lineDriverFactory.changeWebDriver(driver)WebUI.navigateToUrl('www.katalon.com')

2 Likes

Thanks Marek.

The solution mentioned by you is working perfect for us now.

Regards,
Tanmay