Google Chrome browser updates are available more frequently than updates to the PeopleSoft Test Framework (PTF). For example, when PTF 8.58 was made generally available, the Chrome browser versions that would work were 74 to 79. At the time of writing this blog, the latest version is 83, and any browser installation that is set up for auto-update would update the browser to the latest version. This would cause test playback failures because PTF does not have a compatible Chrome WebDriver to drive the latest browser. In addition, customers using older versions of Chrome browser would have to either disable the auto-updates to stick to the working browser version or switch to another browser – Internet Explorer or Firefox. Some organizations have a policy to update to the latest browser version to uptake fixes and most importantly security fixes.
To catch up with frequent Chrome browser updates, PTF now supports a 'bring your own Google Chrome driver' feature. Starting with PeopleTools 8.58, (backported to 8.57.11 and 8.56.22) you can download the compatible WebDriver for the browser version that you are running. PTF will look for webdrivers in the install directory and choose a compatible driver and run the test case.
Let’s look at an example. The below screenshot shows the Google Chrome version running in my test environment. The version is 81.0.4044.129.
Download the compatible webdriver from https://sites.google.com/a/chromium.org/chromedriver/downloads. At the time of writing this blog, the available driver versions are shown in the screenshot below. In this case, download the ChromeDriver 81.0.4044.69. The download file is chromedriver_win32.zip. Extract the zip file to find the chromedriver.exe executable file. For more information on how to identify the right driver version for your installed browser version refer to https://sites.google.com/a/chromium.org/chromedriver/downloads/version-selection.
Copy the extracted chromedriver.exe file to the PTF install directory and rename the driver to match the existing chromedriver naming format. The new chromedriver is renamed as chromedriver_81.0.4044.69.exe.
With this setup, PTF will now continue to work with the latest chrome browser. This feature enables customers to update to latest browser version without breaking their PTF environment.