[Wtr-general] contains_text with regular expression

sikander sikander at marlabs.com
Sun Aug 20 07:32:26 EDT 2006


Hi!

 

I want to verify that 'Search' text should present in a page. So I am using
the following syntax 

 

assert($ie.contains_text(/Search/).exists?)

 

I think this is wrong, as it is giving error. Can any one suggest me the
correct syntax to check the particular text in a page using contains_text
and regular expressions?

 

Thanks,

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060820/94f678e5/attachment.html 


More information about the Wtr-general mailing list