Alert accept Version 10 (Java)


Description

This action simulates agreement with the dialog box (IConfirm)

Action icon 

Action parameters 

Input parameters 

"Context" field - action context for working with the browser.

Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browser.Robin.SeleniumBrowser contextYes

Special conditions of use 

None.

Example of use 

Task

Go to website https://old.bankrot.fedresurs.ru/backoffice/Login.aspx, click "Log in", accept alert. 


Solution

Use the "Open browser", "Send click", "Alert accept", "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 WebSpy (see section Creating Web-elements). 

  4. Set the "Alert accept" action parameter.
  5. Set the "Close browser" action parameter. 

  6. Click "Start" in the top panel. 

Result

The program robot completed successfully. 

 

  • Нет меток