#protractor #letcode #alert
Hello guys, In our protractor tutorial video, we will learn How to handle alerts.
Types of alert:
1. Simple
2. Confirm
3. Prompt
Syntax:
browser.switchTo().alert()
Functions:
00:00 what is alert?
02:20 1. accept() - to accept an alert
06:15 2. dismiss() - to dismiss an alert
10:00 3. sendKeys(string) - to type in an alert
07:30 4. getText() - to get text from an alert
15:00 Exceptions:
1. No such alert
2. Unexpected alert open
Source code:
https://github.com/ortoniKC/Protracto...
Connect with me on LinkedIn,
/ ortoni
Join our Facebook group,
/ letcode
Thanks for watching :)
Intro & Outro
music credit
song: To my soul
/ majesticcasual
Channel search
letcode "letcode koushik" LetCode "letcode automation" "letcode javascript" "letcode chrome extension" "letcode protractor" "letcode testing" "letcode selenium" selenium protractor javascript "chrome extension" java "letcode java" "letcode youtube"