Nexial Automation

Test Automation Platform for everyone!

X

web » assertFocus(locator)

Description

  • This command is to assert if the focus is on the element.
  • The command will pass if the focus is on the element or else fail otherwise.

Parameters

  • locator - this parameter is the xpath of the element.

Example

Script:

Output:

See Also