Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

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.

Image Added

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. Требуется замена скриншота

Image Added

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

Image Added

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

Image Added

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: Требуется замена скриншота

Image Added