Page 1 of 1

Can eValid determine if a particular string isn't present

PostPosted: Mon Jun 26, 2023 3:55 pm
by GraceDN
Hi.

Does eValid have a way to confirm that a particular string is NOT present in a page?

Thanks

Re: Can eValid determine if a particular string isn't presen

PostPosted: Tue Jun 27, 2023 6:14 am
by eValid
GraceDN wrote:Hi.

Does eValid have a way to confirm that a particular string is NOT present in a page?

Thanks


Thanks for posting, GraceDN.

Indeed, you can by using the reverse of the MatchString command, as follows: MatchNotString wid "text" key ["frame_path"]

This command checks to confirm that ANY non-zero-length text is NOT located anywhere in the current page.

Note that this search will match on (and hence FAIL) on any content on the page, whether visible or not.

The key can be one of two options (other values produce errors):

0 - Case Insensitive
1 - Case Sensitive


-- eValid Support