Google Chrome crashed on my PC --- 2 reasons found

Chrome always crashes on my corporate’s PC. This incident has been my personal itch for the last 4 months. Finally I have managed to find a workaround, and succeeded to use Chrome with Katalon Studio on my corporate’s well-administrated PC.

The idea is as follows:

  1. I won’t rely on Katalon Studio for opening Chrome browser.
  2. Rather, my test case should instantiate org.selenium.org.openqa.selenium.chrome.ChromeDriver. Here I will NOT specify --disable-extensions switch.
  3. My test case should let Katalon Studio to use the ChromeDriver instance for running tests. This can be done by calling com.kms.katalon.core.webui.driver.DriverFactory#changeWebDriver() method.

Following snippet shows how to:

import org.openqa.selenium.WebDriverimport org.openqa.selenium.chrome.ChromeDriverimport com.kms.katalon.core.webui.driver.DriverFactory
// Test Listener TS1 sets System.setProperty('webdriver.chrome.driver', <path to chromedriver.exe>)
// open Chrome browser and let Katalon Studio to use it
WebDriver driver = new ChromeDriver()
DriverFactory.changeWebDriver(driver)
// execute some steps
WebUI.navigateToUrl('http://demoaut.katalon.com')
WebUI.verifyElementPresent(findTestObject("Page_CURA Healthcare Service/a_Make Appointment"), 20)
// close the browserWebUI.closeBrowser()

This worked fine.

I made a sample project here and exposed public:

1 Like