Skip to content

Commit

Permalink
Fixed typo in JS code in AlertOverride (#8043)
Browse files Browse the repository at this point in the history
Changed the __webdriverPrompt to __webdriverPrompts in the window.prompt function.

Co-authored-by: David Burns <[email protected]>
  • Loading branch information
havja and AutomatedTester authored Feb 28, 2020
1 parent 990b4de commit 66d9320
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 66d9320

Please sign in to comment.