1 Answer

0 votes
by

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

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

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

Related questions

0 votes
asked Apr 5, 2021 in Protractor by Robindeniel
0 votes
asked Apr 5, 2021 in Protractor by Robindeniel
...