Send text to the alert Version 10 (Java)


Description

The action enters text into the dialog box.

Action icon

Parameters and their settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browser.Robin.SeleniumBrowser contextYes
TextThe text to sendRobin.String
Yes

Special conditions of use

None.

Example of use

Task

You need to enter text into the dialog box after clicking on the "Execute code" button. 


Solution

Use the actions "Open Browser", "Send Click", "Send text to the alert". 

Implementation

  1. Assemble a robot scheme consisting of actions:

  2. Set the parameters for the "Open Browser" action. 
  3. Set the parameters for the Send Click action. The element must be captured using WebSpy (see section Create Web-elements). 


  4. Fill in the parameters for the "Send text to the alert" action. 
  5. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully. The text is entered into the dialog box. 

 

  • Нет меток