Setup driver in beforetest case

I have the following in my test suite script:

@SetupTestCase(skipped = false) **
def setupTestCase() {
** System.setProperty(, C:\drivers\chromedriver.exe)

** WebDriver driver = new ChromeDriver();**
** DriverFactory.changeWebDriver(driver)**
** KeywordUtil.logInfo(Chrome Driver Path : + driver)**

It sets up the chrome driver correctly in the loginfo but when i try to utilize the driver in a test case the driver has changed when i log the info again it shows the path as the default katalon driver under resources

Chrome Driver Path : C:\Program Files\Katalon Studio\configuration\resources\drivers\chromedriver_win32\chromedriver.exe

1 Like

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.



Let’s refer to this: How to Test Two Browsers using WebDriver - #2 by Russ_Thomas so that you can set up correctly

I used this example to set it up but whenever i used the setproperty its still using the katalon driver and not the specified path to the driver

The last line shows “Chrome Path C:\Program Files\Katalon Studio\configuration\resources\drivers\chromedriver_win32\chromedriver.exe” instead of the one in set property

1 Like