I'm trying to check the value of the value field inside a div. this value is not reflected to a string or a int in the div value, only in his attribute:
<input as-automation="" type="text" placeholder="Put the initial value here" value="999.99">
please look a value of 999.99, how can I reach it? I tried valueof, contains, eq, nothing worked..
I want to find the way to reach this value by cypress.
You should be able to reference the element's
value
by the keyvalue
, either through the Chai assertion (viacy.should()
) or incy.its()
.