eValid IndexFind vs. Xpath

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

eValid IndexFind vs. Xpath

Postby webtestgadfly » Wed Dec 22, 2010 5:01 pm

The way you guys at eValid do the DOM processing stuff is neat, but how does your IndexFindElement command compare to using Xpath?
webtestgadfly
 
Posts: 27
Joined: Tue Jan 01, 2008 12:48 pm

Re: eValid IndexFind vs. Xpath

Postby eValid » Mon Dec 27, 2010 9:33 am

webtestgadfly wrote:The way you guys at eValid do the DOM processing stuff is neat, but how does your IndexFindElement command compare to using Xpath?

As you know, eValid is oriented to non-programmers.

From that perspective, we think that eValid's commands are simpler and easier to use and clearer than having to use the programming-oriented XPATH
search method.

Typical eValid passages using IndexFindElement or IndexFindElementEX commands involve:

(1) Setting the starting index, e.g. SetIndex 0. Or leaving it unchanged form the last command.

(2) Issuing the IndexFindElement or IndexFindElementEX command(s) using the right parameters. In the case of the "EX" version you need to realize that you could put in a regular expression. (This is where eValid matches the XPATH type of operation).

(3) Taking an action on the page element that the IndexFind command has found.

By the way, our measurements on IndexFindElementEX show that it is much faster than XPATH, probably due to the fact that the command is executed directly in the browser rather than through interpretive JavaScript.

eValid Technical Support
eValid
 
Posts: 2395
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