Hi Community members,
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:
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()
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 or a heart and share it with your colleagues. Your support for KShare is greatly appreciated!