Upgrading Selenium Client Libraries (Includes Updating WebDriver Support for Firefox)The following is always the first step for updating Selenium WebDriver—no matter what browser you want it to use for playback. WebDriver support for Firefox will be upgraded as part of this process. - Go to http://search.maven.org.
- Search for and download the following .jar files from maven.org:
- selenium-api-<version>.jar
- selenium-chrome-driver-<version>.jar
- selenium-firefox-driver-<version>.jar
- selenium-ie-driver-<version>.jar
- selenium-edge-driver-<version>.jar
- selenium-java-<version>.jar
- selenium-remote-driver-<version>.jar
- selenium-support-<version>.jar
- Remove the <version> suffix from each of the downloaded jar files.
- In the SOAtest installation directory, run the
update.bat script (for Windows) or update script (for Linux and Mac) with the –patch argument and the path to each of the .jar files you downloaded. Running this script will replace the version in the installation with the file referenced by the patch argument. It will also back up the replaced file in the installation by appending a .bak extension to the file.- For Windows: Run
update.bat –patch /path/to/[name_of_file].jar - For Linux or Mac: Run
./update –patch /path/to/[name_of_file].jar . On some versions of Mac, you might need to manually copy the Selenium drivers.
After you have completed the above steps, you can confirm that Selenium WebDriver for Firefox was upgraded by going to the Firefox Add-Ons page and checking the version number. Upgrading WebDriver Support for Chrome (ChromeDriver)To upgrade WebDriver’s support for Chrome, update ChromeDriver as follows: - If you have not already done so, upgrade the Selenium client libraries as described in Upgrading Selenium Client Libraries (Includes Updating WebDriver Support for Firefox).
- Go to the ChromeDriver downloads page at http://chromedriver.storage.googleapis.com/index.html.
- Download the latest release (you can click the LATEST_RELEASE link to find out what version is the latest).
- Download the ChromeDriver .zip file for your architecture:
- For Windows 64-bit and 32-bit: chromedriver_win32.zip
- For Mac 64-bit and 32-bit: chromedriver_mac32.zip
- For Linux 64-bit: chromedriver_linux64.zip
- For Linux 32-bit: chromedriver_linux32.zip
- Extract the
chromedriver.exe file from this .zip. - In the SOAtest installation directory, run the
update.bat script (for Windows) or update script (for Linux and Mac) with the –patch argument and the path to the chromedriver.exe file. Running this script will replace the version in the installation with the file referenced by the patch argument. It will also back up the replaced file in the installation by appending a .bak extension to the file.- For Windows: Run
update.bat –patch /path/to/chromedriver.exe - For Linux or Mac: Run
./update –patch /path/to/chromedriver
Upgrading WebDriver Support for Internet Explorer (InternetExplorerDriver)The Selenium WebDriver engine uses the 32-bit version of Internet Explorer. Any custom Internet Explorer Executable Path settings (e.g., from Preferences> Browser> IE Executable Path) will not be applied. - If you have not already done so, upgrade the Selenium client libraries as described in Upgrading Selenium Client Libraries (Includes Updating WebDriver Support for Firefox).
- Go to the Selenium Download page (http://www.seleniumhq.org/download/), then under the Internet Explorer Driver Server section, download the 32 bit Windows IE version—even if you’re running 64-bit Windows.
- Extract the
IEDriverServer.exe file from the.zip. - In the SOAtest installation directory, run the
update.bat script with the –patch argument and the path to the IEDriverServer.exe file you downloaded (e.g., update.bat –patch /path/to/IEDriverServer.exe ). Running this script will replace the version in the installation with the file pointed to by the patch argument. It will also back up the replaced file in the installation by appending a .bak extension to the file.
SOAtest will now use the newer version of InternetExplorerDriver for playback. - If you have not already done so, upgrade the Selenium client libraries as described in Upgrading Selenium Client Libraries (Includes Updating WebDriver Support for Firefox).
- Go to the Microsoft WebDriver download page (https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/) and download the driver for your version of Edge (see Browser Support for version support details).
- Save the driver to the following directory:
<SOATEST_INSTALL>\eclipse\plugins\com.parasoft.ptest.libs.web_<version>\root\browsers\webdriver\edge\x86\
|