Can I verify the HTML contents of an element in a WebView without using code steps?
I have an HTML div on my form. I want to add a step using the Step Builder in order to verify the contents of the div (innerHTML).
Can you explain me how to do this?
1 Answer, 1 is accepted
0
Martin
Telerik team
answered on 25 Jan 2017, 01:58 PM
Hello Erwin,
The Step Builder feature currently doesn't support verifying DOM object properties. For most web elements it supports verifying attribute values only.
The only approach you can use to achieve your requirement is a coded step - to get the div element's HTML value, use the GetHtml API command described here.
I hope the above information will be helpful to you. Please let me know if you need any further advice!