Nexial Automation

Test Automation Platform for everyone!

X

desktop » saveElementCount(locator,var)

Description

  • This command is to count the element present as per the locator(xpath provided.
  • In other words the command will return the count of element matching per the locator.
  • if the action is successful, the command will pass and return the element count or fail otherwise.

Parameters

  • locator - this parameter is to provide the locator(Xpath) of the element
  • var - this parameter is to store the element count into user defined variable.

Example