Page 1 of 1

A page that has a specified DOM property?

PostPosted: Mon Jul 22, 2013 1:30 pm
by CPatrick
Is there a way to run a scan of a page to find every object in the page that has a specified DOM property?

Re: A page that has a specified DOM property?

PostPosted: Thu Jul 25, 2013 10:14 am
by eValid
Yes, this can be done.

The first approach is to use the eValid DOM search capability such as IndexFindElement command or the IndexFindElementEX command.

These commands search for a specific match to a DOM property name and value that you specify in the script. If you just want to find an element that has a defined property value that will work too. The difficult part is that this is intended to find something in a page that is unique, but from the way your question is asked, you want to find ALL of such DOM property name [and value] matches in a specific page.

In this case, the same script needs simply to be run in a loop, incrementing the starting index each time. You can do this using eValid's Environment Variables capability.

Here are some example script passages that may be helpful: DOM Manipulation Resources.

eValid Support