Overcoming webpage with multi propery names or values

How to apply eValid to functional testing of web applications.

Overcoming webpage with multi propery names or values

Postby JosephR » Mon Jul 05, 2021 9:35 am

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
JosephR
 
Posts: 1
Joined: Mon Jul 05, 2021 9:32 am

Re: Overcoming webpage with multi propery names or values

Postby eValid » Tue Jul 06, 2021 9:25 am

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.html

So, 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
eValid
 
Posts: 2165
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Desktop and Mobile Device Functional Testing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons