Just a question can one use a Regexp object instead of mystring if one want to do pattern matching in the assert_match?
Cheers Pierre Garigue -----Original Message----- From: Chris McMahon [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 26, 2005 2:13 PM To: [email protected] Subject: Re: [Wtr-general] Is there a method to do ie.contains_html() ? assert_match("mystring",ie.html) I use this all the time. On 10/26/05, Sy Ali <[EMAIL PROTECTED]> wrote: > I know about contains_text() but is there some sort of contains_html() > feature, or should I build my own method to do this? > > I notice html() which will output the entirety of the HTML for a page, > but is there an easy way to match text within that. > > I mean to ask.. has anyone written a snippet of code which I can re-use? > > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
