Peter Bernier wrote:
I don't *think* assertTextPresent works when you pass it an alternate
locator strategy (ie, regexp: ). I spent alot of time trying to get it
to work, and then I ended up using regexp: and assertText (passing it my
target element) to do what I needed.
Peter, you're quite correct: assertTextPresent was never upgraded to
support regexp or glob patterns ... it just checks for a verbatim substring.
If you want check the entire page for the presence of a pattern, you can
actually use "assertText" with a locator that matches the entire page:
| assertText | //body | regexp:Search |
(From that point of view, perhaps "assertTextPresent" is now redundant.)
Another note: the regexp matcher does NOT require '/' delimiters (and
nor does it support flags like "i" and "g").
--
cheers, MikeW http://www.dogbiscuit.org/mdub/
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users