Run integration tests with WebDriver BiDi instead of CDP for Firefox.

This commit is contained in:
Henrik Skupin 2023-10-25 10:37:43 +02:00
parent 15103600ea
commit 4db01746d8
No known key found for this signature in database
GPG Key ID: AEB189C8ED815074

View File

@ -937,6 +937,10 @@ async function startBrowser({ browserName, headless, startUrl }) {
}
if (browserName === "firefox") {
// Run tests with the WebDriver BiDi protocol enabled only for Firefox for
// now given that for Chrome further fixes are needed first.
options.protocol = "webDriverBiDi";
options.extraPrefsFirefox = {
// avoid to have a prompt when leaving a page with a form
"dom.disable_beforeunload": true,