Get text Version 12 (Java)
Action group: Browsers
Description
The action gets text from a selected element
Action icon
Action parameters
Input parameters
"Context" field - action context for working with the browser.
"Element" field - element for interaction.
"Element text type" field - the method of forming the resulting string.
"Without spaces" field - remove extra spaces and whitespace characters.
Output parameters
Result - string variable containing the text of the element.
Settings
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Context | Action context for working with the browser. | Robin.Selenium | Browser context | Yes |
Element | Element for interaction | Robin.WebElement | Yes | |
Element text type | The method of forming the resulting string | Robin.String | No | |
Without spaces | Remove extra spaces and whitespace characters. | Robin.Boolean | true | No |
Results | ||||
Result | String variable containing the text of the element | Robin.String |
Special conditions of use
None.
Example of use
Task
Follow the link https://wiki.rpa-robin.ru/Eng/index.html and get text from the web element.
Solution
Use the "Open Browser", "Get text", "Close browser" actions.
Implementation
- Assemble a robot scheme with the actions:
- Set the "Open browser" action parameter.
- Set the "Get size and element coordinates" action parameter. To create an element use WebSpy (see section Create Web-elements).
- Set the "Close browser" action parameters.
- Click "Start" in the top panel.
Result
The program robot completed successfully. The size and element coordinates were received.
Обзор
Инструменты контента