How can I get a new instance of the chrome webdriver to inherit the desired capabilities defined in katalon?
Here’s an extract of my code.
System.setProperty(“webdriver.chrome.driver”, DriverFactory.getChromeDriverPath());
ChromeOptions options = new ChromeOptions()
DesiredCapabilities capabilities = new DesiredCapabilities()
capabilities.setCapability(ChromeOptions.CAPABILITY, options)
WebDriver driver = new ChromeDriver(capabilities)
DriverFactory.changeWebDriver(driver)
WebUI.navigateToUrl(url)