Keypress Action

Keypress Action Overview

A Keypress Action can be added to your test to simulate using a keyboard shortcut to interact with your site. This could be a single key such as Page Up, or a combination such as Ctrl + Shift + W.

Create a Keypress Action in Architect

  1. Launch Architect and begin recording your test
  2. Click the Add (+) icon to open the Architect Actions side panel

  3. Click Keypress

  4. Enter the key(s) to be pressed in the Key field, and by default, the Execute keys checkbox is unchecked, check it only if you want to execute the keys at this point in your test during the recording
    KP4.png
    KP5.png
  5. Click Add button in Architect Actions side panel
  6. Click the white circle to the left of the Keypress Action to edit the Action
    KP7.png

Add a Keypress Action to an Existing Test

Keypress Actions can be inserted via the Test Detail page and Slider view.

Test Detail Page

  1. Open the Test
  2. Hover where you would like to insert the Action
    InsertActionBeforeAfter.png


  3. Click the Add (+) icon where you wish to insert the new Action and select Key
  4. Select the Key(s) in the dialog box
  5. The drop-down menu includes each alpha-numeric key, escape key, and arrow keys
  6. If adding a multiple-key combination, select the necessary additional keys with the checkboxes
    Note: "Meta" refers to the Windows key in Windows or the Command key in iOS.
  7. Click Insert
  8. The new Keypress Action will be visible on the Test Details
  9. Expand the Keypress action step to see the Action Settings to view the selected Key(s)
    KP13.png

Slider View

  1. Open your Test
  2. Open Slider view via the View Results button or the View button next to any Action
  3. Click the Quick Add button at the step where you would like to insert the action.

  4. Open the Insert menu and select Key

  5. Select the Key(s) in the dialog box, if adding a multiple-key combination, select the necessary additional keys with the checkboxes
    Note: "Meta" refers to the Windows key in Windows or the Command key in iOS.

  6. Click Insert