shiva_ranabhat
10 years agoContributor
Any available property to identify element based on hierarchy?
Hi, I'm looking for an identifier in Object Spy, where I can specify 'click on 5th item in a hierarchy'. I don't want to identify based on text. For instance, I could then go to Name Mappi...
- 10 years ago
Thanks for the screenshot.
As you are testing web pages, the EvaluateXPath method is available for you. It searches through html elements by using a special expression you created. For example, your expression can look like this:
//OL[@class='ClassName']/LI[1]
To create an expression, you need to analyze the html code of your list.
Here are several online articles that will help you:
http://smartbear.com/viewarticle/55768/
http://smartbear.com/viewarticle/62117/
http://msdn.microsoft.com/en-us/library/ms256115(v=vs.110).aspx