Trouble with structural Commands

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

Trouble with structural Commands

Postby PaulMa » Wed May 21, 2014 6:30 pm

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
PaulMa
 
Posts: 1
Joined: Mon May 19, 2014 2:28 pm

Re: Trouble with structural Commands

Postby eValid » Fri May 23, 2014 8:13 am

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