Robot Framework Tutorial #32 – How to handle Alerts in Robot Framework

In this Robot Framework Tutorial we will understand how to handle Alerts in Robot Framework and the keywords available in Robot Selenium library to interact and work with JavaScript Alerts on any webpage.

Some of the keywords that I will explain in this tutorial are:

* Handle Alert – Handles the current alert and returns its message.

* Input Text Into Alert – Types the given text into an input field in an alert.

* Alert Should Be Present – Verifies that an alert is present and by default, accepts it

* Alert Should Not Be Present – Verifies that no alert is present.