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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browser.Robin.SeleniumBrowser contextYes
Hot keyThe 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
ElementElement for interactionRobin.WebElement
No
Delay, msThe 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

  1. Assemble a robot scheme with the actions.



  2. Set the "Open Browser" action parameters (see Open Browser Windows, tabs, frames).

    1. "Browser" parameter. Select the browser for the robot to open.

    2. "URL" parameter. Specify the URL to go to after opening the browser.



  3. Set the "Send hot keys" action parameters.

    1. "Context" parameter. Specify the open browser context.

    2. "Hot key" parameter. Specify the hot key list. Here it is "LCtrl + A" and "LCtrl + C".



  4. Click "Start" in the top panel.

Result

The program robot completed successfully. All page elements were saved to the clipboard.


  • Нет меток