How to use keyboard shortcuts?

Web Testing

The supported keyboard short cuts at this point are: ENTER, DELETE, TAB, BACK_SPACE, CTRL_F5, ESC, CTRL_A, CTRL_C and CTRL_V. Here is how you can use each one:

1- To support CTRL_A, CTRL_C, CTRL_V and BACK_SPACE, you can enter them in uppercase letters in a Fill step as follows:

  • Example of CTRL_A while filling a text box:
    • FILL HALT clear=false application.page.text.alias "CTRL_A"
  • Example of CTRL_C while filling a text box:
    • FILL HALT clear=false application.page.text.alias "CTRL_C"
  • Example of CTRL_V while filling a text box:
    • FILL HALT clear=false application.page.text.alias "CTRL_V"
  • Example of BACK_SPACE while filling a text box:
    • FILL HALT clear=false application.page.text.alias "BACK_SPACE"

2- To support TAB, ENTER and DELETE, you can enter @ to populate the variables list in a Fill step and select the variable you need:

  • Example of TAB while filling a text box:
    • FILL HALT clear=false application.page.text.alias "@system.key.tab"
  • Example of ENTER while filling a text box:
    • FILL HALT clear=false application.page.text.alias "@system.key.enter"
  • Example of DELETE while filling a text box
    • FILL HALT clear='false' application.page.text.alias "@system.key.delete"

3- To support CTRL_F5 and ESC, HOTKEYS command can be used in a step as follows:

  • HOTKEYS HALT CTRL_F5
  • HOTKEYS HALT ESCAPE

4- For a more complicated set of combinations, you can use the MULTI_ACTION command.

 

Desktop Testing

To support TAB, ENTER and DELETE in Desktop testing, you can enter @ in Desktop_Fill to populate the variables list in a Desktop_Fill step and select the variable you need. For any other hotkeys, you can use Desktop_Hotkeys command separately.

  • Example of TAB while filling a text box:
    • Desktop_Fill HALT application.page.text.alias clear='false' "@system.key.tab" 0.7
  • Example of ENTER while filling a text box:
    • Desktop_Fill HALT application.page.text.alias clear='false' "@system.key.enter" 0.7
  • Example of DELETE while filling a text box
    • Desktop_Fill HALT application.page.text.alias clear='false' "@system.key.delete" 0.7
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.