Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

browser(firefox): support alertCheck and confirmCheck dialogs (#4553)

Dmitry Gozmane8419f85b69e
diff --git a/browser_patches/firefox/BUILD_NUMBER b/browser_patches/firefox/BUILD_NUMBER
index 716ac56df3..2048c6e22c 100644
--- a/browser_patches/firefox/BUILD_NUMBER
+++ b/browser_patches/firefox/BUILD_NUMBER
@@ -1,2 +1,2 @@
-1216
-Changed: [email protected] Mon 30 Nov 2020 09:59:07 AM PST
+1217
+Changed: [email protected] Mon Nov 30 18:45:31 PST 2020
diff --git a/browser_patches/firefox/juggler/TargetRegistry.js b/browser_patches/firefox/juggler/TargetRegistry.js
index ce6ac64f95..fe5e09b582 100644
--- a/browser_patches/firefox/juggler/TargetRegistry.js
+++ b/browser_patches/firefox/juggler/TargetRegistry.js
@@ -773,9 +773,13 @@ class Dialog {
const type = prompt.args.promptType;
switch (type) {
case 'alert':
+ case 'alertCheck':
+ return new Dialog(prompt, 'alert');
case 'prompt':
+ return new Dialog(prompt, 'prompt');
case 'confirm':
- return new Dialog(prompt, type);
+ case 'confirmCheck':
+ return new Dialog(prompt, 'confirm');
case 'confirmEx':
return new Dialog(prompt, 'beforeunload');
default: