Created
July 9, 2020 14:54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("This is example of Alert pop up ", function () { | |
it("sendAlertText() Pop up ", function () { | |
browser.url("http://the-internet.herokuapp.com/"); | |
browser.pause(5000); | |
$("=JavaScript Alerts").click(); | |
browser.pause(5000); | |
$(".//button[text()='Click for JS Prompt']").click(); | |
browser.pause(5000); | |
browser.sendAlertText("This is Input Text"); | |
browser.pause(5000); | |
browser.acceptAlert(); | |
browser.pause(5000); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment