JosephR wrote:Hi.
Can eValid help me with dealing with web pages that have multiple instances of a property name or value?
Please provide any reference material if available.
Thanks
Great question JosephR.
This often arises when you are trying to test a "mechanically generated" web page -- one built with some kind of automated framework.
Unfortunately, you can't change the page -- at all or only with great difficulty.
So the non-uniqueness of what you're searchng for is embedded.
What to do?
Answer: Run multiple tests in sequence to find the nth instance of the match.
Here it the manual page:
http://e-valid.com/Products/Documentati ... ement.htmlSo, to find the (for example) third version of a pattern you might use this sequence of commands:
IndexSet 0
IndexFindElement ...paramters...
IndexMove 1
IndexFindElement ...paramters...
IndexMove 1
IndexFindElement ...paramters...
IndexMove 1
The "IndexMove 1" command pushes the search to the next DOM element; otherwise, the IndexFindElement command, which starts at the current sourceIndex, will find the element it just found.
-- eValid Support