Skip to content

How do I shift the focus from a particular element

This example demonstrates shifting the focus from a particular element.

In the solution shown below, you will see that the focus is shifted from "Age" input field to "Income" input field in HICC by passing "Keys.TAB" as value to the "sendKeys" command.

Solution:

# Command Target Value
Shifting the focus from "Age" input field to "Income" input field
1 sendKeys
id=txt_age Keys.TAB

Tips, Tricks, Gotchas & Best Practices:  

  • If the "Keys.TAB" doesn't work, you can use sendKeysTabOut as an alternative.


Feedback and Knowledge Base