История страницы
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
Свойство | Англ. наименование | Описание | Тип | Пример заполнения | Обязательность заполнения поля |
---|---|---|---|---|---|
Параметры | |||||
Контекст | Context | Уникальный идентификатор открытого сеанса работы с браузером. | Идентификатор сеанса браузера | ACTION_CONTEXT | Да |
Элемент | Element | Элемент для взаимодействия. | Web-элемент | Да | |
Тип клика | Click event type | Тип клика, который необходимо произвести. В выпадающем списке доступны значения:
По умолчанию значение равно "ЛКМ". | Строка | ЛКМ | Нет |
Горячие клавиши | Ноtkeys | Список горячих клавиш, которые будут комбинированы с кликом. Для Selenium доступны три: Ctrl, Alt, Shift | Горячие клавиши | Ctrl | Нет |
Смещение по оси X | X axis offset | Смещение по оси X относительно левого верхнего угла элемента | Число | 0 | Нет |
Смещение по оси Y | Y axis offset | Смещение по оси Y относительно левого верхнего угла элемента | Число | 0 | Нет |
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.
...