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
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for working with the browser. | Robin.Selenium | Browser context | Yes |
Hot key | The list of the pressed hot keys. Note: The action does not work with the following keys: capslk, break, scrlk, prtsc, win, menu, numlk, fn. | Robin.HotKeys | Yes | |
Element | Element for interaction | Robin.WebElement | No | |
Delay, ms | The waiting time between pressing individual keys and combinations. | Robin.Numeric | No |
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.