Can you go into further details on the indexfindelement

Discussion of the technology underlying the eValid solution.

Can you go into further details on the indexfindelement

Postby SamsonU » Fri Dec 05, 2014 7:16 pm

Evening, happy Friday.

Can you tell what your IndexFindElementEx command is actually doing?

For me it works great, but on some page it seems to take a long time.

Why is that?

Thanks.
SamsonU
 
Posts: 1
Joined: Fri Dec 05, 2014 7:13 pm

Re: Can you go into further details on the indexfindelement

Postby eValid » Mon Dec 08, 2014 5:43 pm

SamsonU wrote:Evening, happy Friday.

Can you tell what your IndexFindElementEx command is actually doing?

For me it works great, but on some page it seems to take a long time.

Why is that?

Thanks.


Thanks for asking, happy to provide more insight.

Just to be clear, here is the manual page for the command you are asking about:

http://www.e-valid.com/Products/Documen ... nt.ex.html

The eValid Eventlog, with Detailed Timings ON, will show for this command the total number of elements examined and total number of comparisons made within all of those elements.

The worst case of performance is when you are looking for a R.E. string match that is relatively long, e.g. 10 characters, and is NOT on the page.

Some pages have 1000's of elements...and when that happens the search can often take a LONG time. here are some stats about this:

http://www.e-valid.com/Products/Documen ... mance.html

The reason for slow performance in a large page when the pattern is not found is that search has to examine every defined property/attribute of every element of the page.

For each element is can only discard a trial potential match after having tried to see if the current string is NOT matched. It does this from left to right in the strings of each property/attribute and/or value.

There could be 100's of thousands of string-match comparison tests required.

This kind of search can take a lot of time, but the stability and reliability that you get from this kind of testing are worth it.

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