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
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for working with the browser. | Robin.Selenium | Browser context | Yes |
Results | ||||
Result | Text message from the dialog box. | Robin.String |
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.
Обзор
Инструменты контента