Chromedriver Compatibility Issues When Running GitLab-GI/Katalon Pipeline

I am using a CI Pipeline to run my Katalon tests when new code is checked in.

The current workflow is as follows:

  1. Katalon Studio: Running on my local and pulls to and from repo on GitLab.
  2. When new code is added to our Katalon project, a pipeline is kicked off through GitLab-CI and the Katalon docker container. Our runner is a local machine running Ubuntu 18.04.5

Currently, I am running into the following error in my GitLab-CI pipeline console:

2020-09-21 15:03:59.258 ERROR c.k.katalon.core.main.TestCaseExecutor - ? Test Cases/MC_ManagementConsole/1_MC_Login FAILED.
Reason:org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 83
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘runner-231684e9-project-677-concurrent-1’, ip: ‘172.17.0.5’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘4.15.0-96-generic’, java.version: ‘1.8.0_265’
Driver info: driver.version: ChromeDriver

Any ideas on how to fix this compatibility issue?

@jyoung

In the console mode, you can use this command argument, --config -webui.autoUpdateDrivers=true , to allow WebDriver binaries to be updated automatically. Learn more about Console Mode Execution.

@ThanhTo - I have tried adding --config -webui.autoUpdateDrivers=true to my argument, and that doesn’t seem to be working.

I was able to work around this issue by specifically defining an old version of the Katalon docker container to use in my yaml file. Instead of image: katalonstudio/katalon I am using image: katalonstudio/katalon:7.2.10 and that has allowed my pipeline to pass successfully again.

I got the idea from this posting: https://github.com/katalon-studio/docker-images/issues/91

It feels to me like there is an issue with the latest version of the Katalon docker container that needs someone to take a look at. Auto update drivers would be the preferred solution if that was working

@jyoung

Can you provide the full command that you used in the latest docker image ?

script:

cd /tmp && katalonc.sh -runMode=console -projectPath=$CI_PROJECT_DIR -browserType="Chrome" -retry=2 -statusDelay=15 -testSuiteCollectionPath="Test Suites/BYOD/BYOD_LOG/BYOD_LOG_MyStayLoginCollection" -apiKey="$KATALON_API_KEY" --config -webui.autoUpdateDrivers=true