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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browser.Robin.SeleniumBrowser contextYes
ElementElement for interactionRobin.WebElement
Yes
Click event typeLeft click, right click or doubleRobin.String
No
Hot keyThe 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 offsetX-axis offset relative to the center of the elementRobin.Numeric
No
Y axis offsetY-axis offset relative to the center of the elementRobin.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

  1. Assemble a robot scheme with the actions.

  2. Set the "Open Browser" action parameter.

  3. Set the "Navigate" action parameters.

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

  5. Set the "Send click" action parameters.

  6. Click "Start" in the top panel.

Result

The program robot completed successfully.


 

  • Нет меток