Why is the assertion on the button element not working as intended?
  • 30 Aug 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Why is the assertion on the button element not working as intended?

  • Dark
    Light

Article summary

Currently, due to a bug in Appium, we are aware of an issue with Page Source style assertions where the content of the value attribute is loaded as the display text for button elements with a value attribute, instead of the text defined in the label attribute.

If the following applies, your test may have failed due to this issue.

  • The target element is a button element, and the element is successfully called, but the scenario execution fails with the error "The text of the element is different from the expected value."
  • The result displayed in the error message is different from the displayed text.

If all of the above apply to you, please try using an ML assertion in your test as a workaround.

If using an ML assertion does not help work around this issue, please contact support.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.