So I’m trying a new method of writing some test scripts… instead of Katalon scripts…
but everytime I start this test… chrome opens up twice…
first it opens on google.com as I want it to be…instead of going to the “whatever.com” site, it opens another chrome instance and uses that… so I’m left with an extra chrome browser.
Anybody who works on the pure Selenium WebDriver API without Katalon stuff does set system property with the path of chromedriver. Otherwise their script wouldn’t work.
If you want to be “Katalon free”, then you must find out how to set system property with the path of chromedriver.
You have an option:
Download the Chrome Driver executable from the download site, locate it into a folder of your choice. Then set the path of the folder to the system property as documented. This way you can completely be free from Katalon “WebUI” API.
Reuse the Chrome Driver executable which is bundled in Katalon Studio. You can inquire the path of the executable by DriverFactory (Katalon Studio API Specification). This way, you can NOT be free from Katalon API.
This will open a single Browser window, will reuse that window to continue.
This way you would use the WebDriver executable bundled in Katalon Studio while the system property is properly configured by Katalon. Thanks to Katalon!
Yea, this is the way i was trying to set it up… I did that one line wrong. i think this will work fine.
I coudln’t invoke chromedriver on my machine because of some corporate security block… which I could have requested to be removed but rather avoid that path.
yea… I get what you’re saying. I mean all our tests now is katalon-dependent… the way we coded it. if kataon shuts down or we choose to move to another platform, we are kind of screwed.
I guess you’re right, I’d have to use this method instead: System.setProperty(“webdriver.chrome.driver”,“C:/Users/chromedriver.exe”);
^ does that look right? I think it is cuz I’m getting that security block message lol