Styrow.dev
Question 26 of 99

What are alerts and how do you handle?

Question

What are alerts and how do you handle?

Answer

Alerts are the popup windows that you get when there is notification to the user, Handling them: alert_var = browser.switch_to_alert() To dismiss: alert_var.dismiss() To accept: alert_var.accept()