Send hot keys Version 14 (Java)
Action group: Browsers
Description
The action emulates pressing hot keys on a browser page. Hot keys are combinations on the keyboard that execute certain commands.
Action icon
Settings of parameters
Свойство | Описание | Тип | Пример заполнения | Обязательность заполнения поля |
Параметры | ||||
Контекст | Контекст действия для работы с браузером. | Robin.Selenium | Контекст браузера | Да |
Горячие клавиши | Список нажимаемых горячих клавиш. Прим. : действие не работает со следующими клавишами: capslk, break, scrlk, prtsc, win, menu, numlk, fn. | Robin.HotKeys | Да | |
Элемент | Элемент для взаимодействия | Robin.WebElement | Нет | |
Задержка, мс | Время ожидания между нажатием отдельных клавиш и комбинациями. | Robin.Numeric | Нет |
Special conditions of use
This action is not intended for text input, so its functionality is limited. To enter text or required characters, use the "Send text" action.
- If the specified element is out of view, scroll to it.
- The action does not work with the following keys: capslk, break, scrlk, prtsc, win, menu, numlk, fn.
- To add additional key combinations, click on the plus sign. The number of additional combinations is unlimited.
- To delete the parameters of additional combinations, click on the trash bin sign:
Example of use
Task
Copy all the website elements from https://ru.wikipedia.org using hot keys.
Solution
Use the "Open Browser", "Send hot keys" actions.
Implementation
Assemble a robot scheme with the actions.
Set the "Open Browser" action parameters (see Open Browser Windows, tabs, frames).
"Browser" parameter. Select the browser for the robot to open.
"URL" parameter. Specify the URL to go to after opening the browser.
Set the "Send hot keys" action parameters.
"Context" parameter. Specify the open browser context.
"Hot key" parameter. Specify the hot key list. Here it is "LCtrl + A" and "LCtrl + C".
Click "Start" in the top panel.
Result
The program robot completed successfully. All page elements were saved to the clipboard.