Skip to content

How do I simulate "Tab" action along with data entry

This example demonstrates simulating an "Tab" action after entering/appending value in an input field.

In the solution shown below, you will see that the age is entered in the "Age" input field in HICC and then "Tab" action is simulated to move the cursor to the next element using "sendKeysTabOut" command.

Solution:

# Command Target Value
Entering the age and then simulating "Tab" action
1 sendKeysTabOut   id=txt_age 45

Tips, Tricks, Gotchas & Best Practices:  

  • As an alternate solution, you can use type and focus commands subsequently to achieve the same.
  • As a best practice, you are encouraged to validate the value entered into the input field using assertValue, verifyValue or waitForValue commands.


Feedback and Knowledge Base