Get the alert text Version 10 (Java)
Action group: Browsers
Description
The action gets the text from the active dialogue window. (IAlert)
Action icon
Settings of parameters
Свойство | Англ. наименование | Описание | Тип | Пример заполнения | Обязательность заполнения поля |
---|---|---|---|---|---|
Параметры | |||||
Контекст | Context | Уникальный идентификатор открытого сеанса работы с браузером. | Идентификатор сеанса браузера | ACTION_CONTEXT | Да |
Результаты | |||||
Результат | Result | Строковая переменная, содержащая название текст активного окна диалога. | Строка |
Special conditions of use
None.
Example of use
Task
Go to website https://old.bankrot.fedresurs.ru/backoffice/Login.aspx, click "Log in", get the dialogue window text.
Solution
Use the "Open Browser", "Send click", "Get the alert text", "Close browser" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Open Browser" action parameters.
- Set the "Send click" action parameters. To create an element use the WebSpy tool (see section Create Web-element).
- Set the "Get the alert text" action parameters.
- Set the "Close browser" action parameters.
- Click "Start" in the top panel.
Result
The program robot completed successfully.
Обзор
Инструменты контента