There are two types of alerts that we would be focusing on majorly:
Windows based alert pop ups Web based alert pop ups As we know that handling windows based pop ups is beyond WebDriver's capabilities, thus we would exercise some third party utilities to handle window pop ups.
Handling pop up is one of the most challenging piece of work to automate while testing web applications. Owing to the diversity in types of pop ups complexes the situation even more.
What is Alert box/ Pop up box/ confirmation Box/ Prompt/ Authentication Box?
It is nothing but a small box that appears on the display screen to give you some kind of information or to warn you about a potentially damaging operation or it may even ask you for the permissions for the operation.
Example: Let us consider a real life example for a better understanding; Let us assume that we uploaded a photograph on any of these popular social networking sites. Later on, i wish to delete the uploaded photograph. So in order to delete, i clicked on the delete button. As soon as I click on the delete button, the system warns me against my action, prompting � Do you really want to delete the file? So now we have an option to either accept this alert or reject it.
So ahead in the session, let's see how do we reject or accept the alerts depending on their types. Starting with the web based pop ups. |