Send click Version 19 (Java)
Action group: Browsers
Description
The action simulates a mouse click on a page element with the ability to simulate the keyboard key(s) being pressed
Action icon
Settings of parameters
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 | |
Click event type | Left click, right click or double | Robin.String | No | |
Hot key | The list of the hot keys pressed while clicking. Note: The action does not work with the following keys: capslk, break, scrlk, prtsc, win, menu, numlk, fn. | Robin.HotKeys | No | |
X axis offset | X-axis offset relative to the center of the element | Robin.Numeric | No | |
Y axis offset | Y-axis offset relative to the center of the element | Robin.Numeric | No |
Special conditions of use
If an item is out of view, scrolling to it will be performed.
Example of use
Task
Go to the bankruptcy information website, fill in the "CODE" field with a value of less than 8 characters and click on the "OK" button in the window that appears.
Solution
Use the "Open Browser", "Navigate", "Send text", "Send click" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Open Browser" action parameter.
- Set the "Navigate" action parameters.
- Set the "Send text" action parameters. To create an element use the WebSpy tool (see section Create Web-element).
- Set the "Send click" action parameters.
- Click "Start" in the top panel.
Result
The program robot completed successfully.
Обзор
Инструменты контента