Popup & Alerts
Pop-ups are small windows that 'pop up' over the top of web pages in your internet browser. Advertisers used them as a way to get your attention. Alerts are often used if you want to make sure information comes through to the user. Try to test the pop-up and alert functions. Try opening and closing both the pop-up and alert.
Trigger the pop-up window to open by clicking the button below. Instruct your test to then close the pop-up window:
Try to instruct your Selenium test to close this pop-up window.
Press the button below to trigger the alert event. Then try to instruct your automation test to close the alert: