ShariN wrote:Morning.
I was wondering:
If I want to confirm that a substring is present in a part of page, how do I do that?
Thanks
That's a fair question ShariN.
The Validate Selected Text command, which you run from an eValid pull-down after highlighting a part of a string, is what you need.
Note that when eValid at playback time is validating the string, it does so by searching for a match of a substring starting at a specified offset.
So the string you want has to be in the correct place.
If you want to find whether a substring exists in an element, then you are better off using the MatchString command.
The syntax is:
MatchString wid "text" key ["frame_path"]
where you specify the window and any frame_path details, and use the key to signify if you want the match to be case insensitive (0) or case sensitive (1).
You get a PASS on this command if the specified text is present ANYWHERE in the current page.
Hope that helps answer your question, if you need more in-depth help, please contact us.
-- eValid Support