Help with navigating a dropdown within a page

Applying eValid to AJAX applications that require advanced DOM-based methods.

Help with navigating a dropdown within a page

Postby RogerL » Thu Aug 26, 2021 9:57 am

Hello.

If I want to navigate within a dropdown to the Nth item, how do I do that?

Please add any reference material if available.

Thanks
RogerL
 
Posts: 1
Joined: Thu Aug 26, 2021 9:54 am

Re: Help with navigating a dropdown within a page

Postby eValid » Fri Aug 27, 2021 9:43 am

RogerL wrote:Hello.

If I want to navigate within a dropdown to the Nth item, how do I do that?

Please add any reference material if available.

Thanks


Thanks for posting that question RogerL.

Indeed, to get to the first item is a dropdown box is easy enough, but the "trick" to get to a subsequent one is to carefully resent the IndexFindElement command so it skips the current location and returns the NEXT location.

Here is an example showing how this is done for the 3rd item in a dropdown:

http://e-valid.com/Products/Documentati ... ple08.html ?

The reason this is so complicated is that the name-match checking always will find the first-occurring name (string).

This should get you on the right track, but let us know if you encounter problems..


-- eValid Support
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to AJAX Applications & DOM Processing

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