Send text Version 18 (Java)
Action group: Browsers
Description
The action emulates the text input to the specified element.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Variable with the browser driver that the System will work with | Robin.Selenium | Browser context | Yes |
Element | Element for interaction | Robin.WebElement | Yes | |
Text | Text for input | Robin.Object | No | |
Delay (ms) | Time between clicks of characters from the «Text» parameter. Specified in milliseconds. | Robin.Numeric | No | |
Quick input | Ability to quickly enter for large volumes of text. Note: JS script is used. | Robin.Boolean | true | No |
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
Assemble a robot scheme with the actions.
Set the "Open Browser" action parameters (see Open Browser Windows, tabs, frames).
"Browser" parameter. Select a browser from the list for the robot to open.
"URL" parameter. Specify the URL of the page to which the browser will be navigated after opening the browser.
Create a "String" type variable "Email". Specify text in the value of the variable. In this case it is an email address.
Set the "Send text" action parameters. To create an element use the WebSpy tool (see section Create Web-element).
"Context" parameter. Specify the open browser context.
"Element" parameter. Select a web-element for interaction. To create an element use the WebSpy tool (see section Create Web-element).
"Text" parameter. Specify the text to be entered. In this case we select the previously created variable "Email".
Click "Start" in the top panel.
Result
The program robot completed successfully.
The value of the "Email" variable was entered in the "Email" field.