Focus Management on Input Action Overview
The Functionize Input Action is used to enter test data into an input field within the application under test (AUT). This Action Type has numerous action-level settings to fine-tune control of the test action. One of the settings under the Action Details > Settings TAB is called Don't lose focus.
Don't Lose Focus checkbox ON
-
This action level setting is ON by default for Input Action
-
This keeps the mouse/cursor in the specific field the test data was entered into
Don't Lose Focus checkbox OFF
-
Functionize recommends turning this setting OFF if your application requires a field to lose focus in order to trigger a message or process that you may need to test
-
For example, in this Salesforce app, the error message about 'You have entered an invalid format' for the Email field only appears after the field loses focus
Don't lose focus ON for Input Action
The test does not find the message about 'You have entered an invalid format' since the Email field kept the focus
Don't lose focus OFF for Input Action
The test does find the message about 'You have entered an invalid format' since the Email field did not keep focus