Page 1 of 1

Trouble with structural Commands

PostPosted: Wed May 21, 2014 6:30 pm
by PaulMa
Evening.

I'm having trouble with some eValid structural commands.

When I look for a string like this auth* I don't get a match.

Please help!

Thanks

Re: Trouble with structural Commands

PostPosted: Fri May 23, 2014 8:13 am
by eValid
PaulMa wrote:Evening.

I'm having trouble with some eValid structural commands.

When I look for a string like this auth* I don't get a match.

Please help!

Thanks


Thanks for asking PaulMa.

If you use the phrase "auth*" you probably are thinking that eValid will automatically assume that is a regular expression, that is, will match on any string the begins with "auth"...

But no, sorry, eValid will treat "auth*" as the string to be matched...not as a regular expression. Probably that's why you don't get any matches.

The IndexFindElement command will do exact match on the left hand side of a string only. That is, to get a match to a specified string only the first part has to match.

Here is the manual page for IndexFindElement:

http://www.e-Valid.com/Products/Documen ... ement.html

If you DO want to match on any content that starts with auth
-- which you might write as an regular expression as "auth*"
-- then you have to use the IndexFindElementEX command, which DOES take RE's.

Here is a command that lets eValid find the sourceIndex of an object on a page using a search process based on Regular Expressions:

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

-- eValid Support