Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Unable to use with non-Firefox drivers and Selenium 4+ #376

Open
andrewnicols opened this issue Dec 1, 2021 · 0 comments · May be fixed by #377
Open

Unable to use with non-Firefox drivers and Selenium 4+ #376

andrewnicols opened this issue Dec 1, 2021 · 0 comments · May be fixed by #377

Comments

@andrewnicols
Copy link

andrewnicols commented Dec 1, 2021

When trying to start with a default configuration using Selenium 4.0 or 4.1 (3.X is now unsupported), the presence of the empty marionette variable leads to an invalid capability exception in Selenium:

The following debugging information is available:
. Could not open connection: Capability value must be set

A Boolean attribute must be a boolean (True/False) and must not be Null.

The marionette value should either set a Boolean default, or not set any at all.

The marionette value is purely present to support legacy versions of Firefox and should be removed.

andrewnicols added a commit to moodlehq/moodle-ci-runner that referenced this issue Dec 1, 2021
andrewnicols added a commit to moodlehq/moodle-ci-runner that referenced this issue Dec 1, 2021
andrewnicols added a commit to moodlehq/moodle-ci-runner that referenced this issue Dec 1, 2021
andrewnicols added a commit to moodlehq/moodle-ci-runner that referenced this issue Dec 1, 2021
andrewnicols added a commit to andrewnicols/MinkExtension that referenced this issue Dec 1, 2021
The marionette capability is a Firefox-specific capability to aid in the
transition from legacy versions of Firefox (47.0.1 and earlier).

It is a `Boolean` and this value is now checked aggressively in Selenium
4.0.0 onwards. Since `null` is not a Boolean, this leads to an error.

This patch removes the default value, which means that if no value is
specified then it will not be included in the output, and the defaults
will apply (True for Firefox; Unset for other browsers).

Without this patch you must jump through hoops to run against Selenium
4.

Fixes Behat#376
andrewnicols added a commit to andrewnicols/moodle-browser-config that referenced this issue Dec 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant