Page 1 of 1

Search elements via sub-string using eValid

PostPosted: Fri Jul 07, 2017 1:59 pm
by VHoward
Afternoon.

How do I look for an element by specifying a sub-string in eValid.

Thanks

Re: Search elements via sub-string using eValid

PostPosted: Mon Jul 10, 2017 7:10 am
by eValid
VHoward wrote:Afternoon.

How do I look for an element by specifying a sub-string in eValid.

Thanks


A good question VHoward thanks for posting.

You didn't say if this was for a synchronization or for a validation, but the methods to use are similar.

First, you can locate an element in the current page with an IndexFindElement or IndexFindElementEX command, described here:

http://www.evalid.us/Products/Documenta ... indElement

The search for a sub string is best done with a regular expression.

Here is how that goes:

http://www.evalid.us/Products/Documenta ... ple15.html

One note of caution, the regular expression search is resource heavy if you have a very broad regular expression.

-- eValid Support