Skip to content

Commit 239ce45

Browse files
committed
Improving check for modal presence in Firefox. Fixes issue 8208
1 parent 2d34765 commit 239ce45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: javascript/firefox-driver/js/modals.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fxdriver.modals.isModalPresent = function(callback, timeout) {
4141
fxdriver.modaltimer.runWhenTrue(
4242
function() {
4343
var modal = fxdriver.modals.find_();
44-
return modal && modal.document;
44+
return modal && modal.document && modal.document.getElementsByTagName('dialog')[0];
4545
},
4646
function() { callback(true) },
4747
timeout,

0 commit comments

Comments
 (0)