Skip to content

Commit

Permalink
Fixed typo in JS code in AlertOverride
Browse files Browse the repository at this point in the history
Changed the __webdriverPrompt to __webdriverPrompts in the window.prompt function.
  • Loading branch information
Jan Havel committed Feb 20, 2020
1 parent 55aaf10 commit 095f93d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void replaceAlertMethod(WebDriver driver) {
" window.__webdriverPrompts = []; " +
" window.__webdriverNextPrompts = true; " +
" window.prompt = function(msg, def) { " +
" window.__webdriverPrompt.push(msg || def); " +
" window.__webdriverPrompts.push(msg || def); " +
" var res = window.__webdriverNextPrompt; " +
" window.__webdriverNextPrompt = true; " +
" return res; " +
Expand Down

0 comments on commit 095f93d

Please sign in to comment.