Nexial Automation

Test Automation Platform for everyone!

X

desktop » assertAttribute(locator,attribute,expected)

Description

  • This command is to assert the attribute of the required element.
  • By providing attribute name and expected value of the attribute, this method will assert and pass or else fail otherwise.

Parameters

  • locator - this parameter is to provide the locator(xpath) of the element.
  • attribute - this parameter is to provide the attribute of the element.
  • expected - this parameter is to provide the expected values of the attribute.

Example

See Also