Send text Version 18 (Java)

Action group: Browsers


Description

The action emulates the text input to the specified element.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextVariable with the browser driver that the System will work withRobin.SeleniumBrowser contextYes
ElementElement for interactionRobin.WebElement
Yes
TextText for inputRobin.Object
No
Delay (ms)Time between clicks of characters from the «Text» parameter. Specified in milliseconds.Robin.Numeric
No
Quick inputAbility to quickly enter for large volumes of text. Note: JS script is used.Robin.BooleantrueNo

Special conditions of use

The focus for text input is set by clicking and moving to the end of the text is done by pressing Ctrl+End (keyed into the action).

I.e. the text is always added to the end, not replaced (even for JavaScript, the new value is added to the existing value).

If an element is out of view, scroll to it.

Example of use

Task

Go to website Robin RPA https://www.rpa-robin.ru/kontakty , fill in the "Email" field. 


Solution 

Use the "Open Browser", "Send text" actions.

Implementation

  1. Assemble a robot scheme with the actions.


  2. Set the "Open Browser" action parameters (see Open Browser Windows, tabs, frames). 

    1. "Browser" parameter. Select a browser from the list for the robot to open.

    2. "URL" parameter. Specify the URL of the page to which the browser will be navigated after opening the browser.

  3. Create a "String" type variable "Email". Specify text in the value of the variable. In this case it is an email address.

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

    1. "Context" parameter. Specify the open browser context.

    2. "Element" parameter. Select a web-element for interaction. To create an element use the WebSpy tool (see section Create Web-element).

    3. "Text" parameter. Specify the text to be entered. In this case we select the previously created variable "Email".

  5. Click "Start" in the top panel.

Result

The program robot completed successfully.

The value of the "Email" variable was entered in the "Email" field.

  • Нет меток