Totara Learn Open Discussions

Totara + Behat tests

 
Bryn Whyman
Re: Totara + Behat tests
by Bryn Whyman - Sunday, 27 August 2023, 9:57 PM
Group Totara

Hey Davo

You are right this is as a result of a recent Chromium update.

The JSON wire protocol (as used when the w3c variable is set to false) is no longer working. This was accepted by Chrome driver, which is no longer produced by Google (with the last version being 114, which supported up to Chrome 115). Selenium 4.8 was also the last version of Selenium that allowed the JSON wire protocol.

This is on our radar at Totara, the Behat test suite needs some work.

Another workaround is to use a Chrome docker image (with the highest version of 106) from https://hub.docker.com/u/selenium

Further configuration of Behat can be achieved by placing a file called `behat_local.yml` in the `test\behat\` directory and overriding the options that you've seen in the behat.yml file. This would allow you to override w3c property in a safer way (and a number of other properties as well).