To have a better control of the browser versions while testing, Katalon Studio allows you to update or downgrade WebDrivers manually or via Katalon Studio built-in tools. This article will show you how to do so.
Update a Webdriver
- From Katalon Studio version 7.0.0 onwards, you can update Chrome, Firefox and Internet Explorer WebDrivers directly from the application.
- From Katalon Studio version 7.6.0 onwards, you can also update Edge Chromium WebDrivers from Katalon Studio.
From Katalon Studio version 7.6.0 onwards, Katalon Studio can detect and allows you to auto-update a compatible Chrome or Edge Chromium driver version when start using Spy/Recorder Web Utility.
For console mode execution, you can use this command argument
--config -webui.autoUpdateDrivers=true to allow automatic WebDriver updates. You can learn more about using the console mode here: Console Mode Execution.
Replace a Webdriver
To upgrade or downgrade WebDrivers, you can replace WebDrivers manually. You can choose to do so at the application or project level.
By default, Katalon Studio runs WebDrivers at the application level. Adding a Webdriver at the project level overrides the application level to open your web browsers.
Find the WebDriver version you want to run your test with. You can find them here:
- Find the location of the WebDrivers you want to replace.
- At the application level, WebDriver binaries are stored here:Note:
If you have multiple Katalon Studio versions installed on your development machine, make sure to navigate to the correct path of the Katalon Studio version you wish to use.
For Window users
ChromeYou can use 32-bit Windows Chromedriver for both 32-bit and 64-bit Windows.
<Katalon Studio folder>\configuration\resources\drivers\chromedriver_win32
<Katalon Studio folder>\configuration\resources\drivers\chromedriver_win64
<Katalon Studio folder>\configuration\resources\drivers\firefox_win32
<Katalon Studio folder>\configuration\resources\drivers\firefox_win64
<Katalon Studio folder>\configuration\resources\drivers\iedriver_win32
<Katalon Studio folder>\configuration\resources\drivers\iedriver_win64
<Katalon Studio folder>\configuration\resources\drivers\edgedriver
<Katalon Studio folder>\configuration\resources\drivers\edgechromium_win32
<Katalon Studio folder>\configuration\resources\drivers\edgechromium_win64
For macOS usersChrome
- At the project level, go to \Project Folder\Include on your computer and follow the below paths:Note:
By default, there is no Webdriver at project level. After replacing WebDrivers at project level, restart Katalon Studio to run new WebDrivers.
For Window usersChrome
For macOS usersChrome
For Linux usersChrome
- At the application level, WebDriver binaries are stored here:
After finding the correct location, replace the
driver.exefile with the one you have downloaded.Note:
After updating or downgrading WebDrivers, to make sure the current version of the browser driver is running smoothly, it is advisable to try re-running the test to resolve and check any pop-up issues.
Use DriverFactory library
Katalon Studio also offers DriverFactory library to manipulate WebDriver instances by using Katalon keywords. You can learn more about this here: DriverFactory.