While working in browsers, errors may occur, leading to the appearance of dialog boxes during browser interactions. These windows are not considered as elements in the page code.

Such browser errors can be handled using the "Windows, tabs, frames" subgroup under the "Browsers" group.

Let’s consider an example of working with dialog boxes.

In this case study, the robot goes to the debtor registry website, enters information into a field that does not match the format that is supposed to be entered there, and then a warning is shown. Требуется замена скриншота

To read information from the error window and close it, use the actions "Get the alert text" and "Alert accept".

When configuring the "Get the alert text" action, fill in the "Context" field. As a result, a variable of string type will be obtained.

The "Alert accept" action is suitable for windows with buttons such as "Yes" and the robot should click it. In this case, the alternative to the "Alert accept" action can be the "Dismiss dialog box" action.

After running the robot, the logs will display the text of the "Get dialog box text" action: Требуется замена скриншота

  • Нет меток