Using the WebDriver Object

Estimated reading time: 1 minute

To use the current session created by Katalon Studio, you can refer to example code below:

WebDriver driver = DriverFactory.getWebDriver()

The returned ‘driver’ parameter will use the current browser’s session launched by Katalon Studio. You need to import necessary libraries also (can be done by pressing Ctrl + Shift + O)