Hey Kishor, Python Selenium webdriver provides following methods to handle pop-ups and alerts:
-
alert_obj.accept() : This method is used to accept the Alert.
-
alert_obj.dismiss() – It is used to cancel the Alert.
-
alert.send_keys() – This method allows you to enter a value in the Alert text box.
-
alert.text() – It is used to retrieve the message included in the Alert pop-up.