This is a migrated thread and some comments may be shown as answers.

Test studio Hybrid: Verify HTML content without using Code Step

1 Answer 26 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Erwin
Top achievements
Rank 1
Erwin asked on 23 Jan 2017, 03:17 PM

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

Sort by
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! 

Regards,
Martin
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Erwin
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or