nmjj wrote:Can you explain how the IndexFindElementEX command works?
The
IndexFindElementEX command is the "big brother" of the
IndexFindElement command, and they both work in pretty much the same way.
The search starts at the 0th (the first) page DOM element if you choose DOWN, or at the last DOM element, if you choose to search UP the page.
At each DOM element eValid checks to see if there is a property with the name you specified in the command. And, if you also specified a value string to be searched for, it will check to see if, on that DOM element, the specified property name has the specified property value. If it does, the scan stops and all of the "external access" variables are set to contain the results.
In the simpler version of the command, the search is for an exact-match for a spcified string. In the "EX" version of the command, the user-supplied string is treated as a Regular Expression (RegEX) and that is what is used for the seach on the value of the specified property.
We recommend you only use the "EX" version if you really have to because the search times can be long, particularly if the page has 1,000's of elements.
The normal version -- the non-EX command -- which uses simple string compares, is lightning fast! A very large page can be search (in memory) in milliseconds.
The eValid Team