- Print
- DarkLight
Why is the assertion on the button element not working as intended?
Article summary
Did you find this summary helpful?
Thank you for your feedback
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?