We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d34765 commit 239ce45Copy full SHA for 239ce45
javascript/firefox-driver/js/modals.js
@@ -41,7 +41,7 @@ fxdriver.modals.isModalPresent = function(callback, timeout) {
41
fxdriver.modaltimer.runWhenTrue(
42
function() {
43
var modal = fxdriver.modals.find_();
44
- return modal && modal.document;
+ return modal && modal.document && modal.document.getElementsByTagName('dialog')[0];
45
},
46
function() { callback(true) },
47
timeout,
0 commit comments