Styrow.dev
Question 28 of 36

How to set value to prompt Alert in Protractor

Question

How to set value to prompt Alert in Protractor

Answer

By using sendKeys() method of Alerts class, we set value to the prompt Alert in Protractor.

browser.switchTo().alert().sendKeys(""Testing"")


šŸ“² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.