HaganL wrote:Afternoon:
How does eValid handle scripts that include regular expressions?
Can eValid do that?
Thanks
HaganL
Thanks for the post HaganL.
Very good question.
First, here is a description of how eValid looks into your page:
http://www.e-valid.com/Products/Documen ... cture.htmlSo the first thing to do is figure out what you want your script to pivot on, that is, what regular expression do you want to use?
Here are the commands to that do the job:
http://www.e-valid.com/Products/Documen ... ple15.htmlThe IndexFindElementEx command is the one that you use to include a regular expression rather than a simple string.
In the second example shown above ANY of the strings in the command can be replaced with their regular expression counterpart.
Fair warning, if the page is large and/and your regular expresion is one for which there may be many matches, be prepared for this command to take longer than a simple IndexFindElement command.
The way to minimize this is to use the most precise regular expression possible...so eValid would require the fewest searches on all of the strings in all of the elements in the page.
Remember for a candidate regular expression a match attempt into a property on an element stops as soon as a mismatch has found.
The quicker eValid sees that it is the wrong place the sooner it can go on the next place, etc.
-- eValid Support