[KShare] How to locate Driver Paths since DriverFactory was refactored?

Hi Community members, :wave:

With the update to Katalon Studio 10.0.0, the DriverFactory has been refactored for better performance. In this refactoring, the commands for DriverFactory have been changed to be browser specific.

Before, in version 9.x and lower, you could call the driver path as such:

DriverFactory.getChromeDriverPath()

DriverFactory.getGeckoDriverPath()

DriverFactory.getEdgeChromiumDriverPath()

DriverFactory.getEdgeDriverPath()

However, in Katalon Studio 10.0.0, the drivers have been assigned their own Util class, and therefore have new methods for pulling the drivers. Below are the updated driver methods: :point_down:

Google Chrome

import com.kms.katalon.core.webui.driver.chrome.ChromeDriverUtil

String chromeDriverPath = ChromeDriverUtil.getChromeDriverPath()

Mozilla Firefox

import com.kms.katalon.core.webui.driver.firefox.FirefoxDriverUtil

String firefoxDriverPath = FirefoxDriverUtil.getDriverPath()

Microsoft Edge Chromium

import com.kms.katalon.core.webui.driver.edge.EdgeDriverUtil

String edgeChromiumDriverPath = EdgeDriverUtil.getEdgeChromiumDriverPath()

Microsoft Edge Legacy

String edgeLegacyDriverPath = EdgeDriverUtil.getEdgeDriverPath()

:information_source: Notes:

  • Please note that this version of Microsoft Edge is no longer supported by Microsoft.

Sample project


If you find this article helpful, then don’t forget to leave us a like :+1: or a heart :heart: and share it with your colleagues. Your support for KShare is greatly appreciated!

4 Likes

Thank you very much the Product Support team (@support.squad) and Jordan Bartley (@jordan.bartley) for yet another informative article!

Jordan Bartley (@jordan.bartley) - Product Support Specialist
Jordan has worked in Quality Assurance, Automated Testing, and Specialist Support roles for several years before joining Katalon. Through his experience, he shows an innate desire to assist clients, take on challenging problems, and work cross functionally with team members to create new solutions.
3 Likes