--- title: "In PageSource style assertions, button elements with the value attribute set will read the value of the value as the display text" slug: "why-is-the-assertion-on-the-button-element-not-as-intended" updated: 2023-08-30T23:57:54Z published: 2023-08-30T23:57:54Z canonical: "help.autify.com/why-is-the-assertion-on-the-button-element-not-as-intended" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.autify.com/llms.txt > Use this file to discover all available pages before exploring further. # Why is the assertion on the button element not working as intended? 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. - [Machine Learning(ML) Assertion](/mobile/docs/ml-assertion) If using an ML assertion does not help work around this issue, please contact support.