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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browser.Robin.SeleniumBrowser contextYes
Results
ResultText 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

  1. Assemble a robot scheme with the actions.

  2. Set the "Open Browser" action parameters.

  3. Set the "Send click" action parameters. To create an element use the WebSpy tool (see section Create Web-element). 
  4. Set the "Get the alert text" action parameters.

  5. Set the "Close browser" action parameters.

  6. Click "Start" in the top panel.

Result

The program robot completed successfully.


  • Нет меток