Is it possible to make Katalon keywords work if browser opened via selenium.WebDriver

Is it possible to make Katalon keywords work if browser opened via selenium.WebDriver like this:

WebDriver driver = new ChromeDriver()driver.get('https://qa.alycedev.com/')

instead of just doing:

WebUI.openBrowser('https://qa.alycedev.com/')

???

The problem is:

  1. Katalon is at the moment not being able to handle correctly: a) http://forum.katalon.com/discussion/4143/desired-capabilities-are-not-taken-into-account b) http://forum.katalon.com/discussion/5038/chrome-desiredcapabilities-not-applied etc.
  2. I want to start Chrome with some custom params to log every request/response (like it is done in Browser Developer Tools / Browser)
  3. I can do the task if I start the browser directly from Selenium, but in this case Katalon keywords can not be executed, saying:
com.kms.katalon.core.webui.exception.BrowserNotOpenedException: Browser is not opened

Please let me know if there is a way.

I think all you need to know is just one line:

DriverFactory.changeWebDriver(driver)

Please have a look at
http://forum.katalon.com/discussion/6150/google-chrome-crashed-on-my-pc-----2-reasons-found

1 Like

Upvoted Kazurayam’s answer. I was looking to do this a while back. Thank you, Kaz.

For anyone struggling to make Kaz’s link work: