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

This commit is contained in:
Henrik Skupin
2023-12-08 20:32:50 +01:00
parent 15103600ea
commit 4db01746d8
+4
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,