A page that has a specified DOM property?

Discussion of the technology underlying the eValid solution.

A page that has a specified DOM property?

Postby CPatrick » Mon Jul 22, 2013 1:30 pm

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

Re: A page that has a specified DOM property?

Postby eValid » Thu Jul 25, 2013 10:14 am

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


Return to Technology

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