you can even do BROWSER.text.should include(query)
On Mon, Feb 11, 2013 at 4:49 AM, Željko Filipin <zeljko.fili...@gmail.com>wrote: > On Mon, Feb 11, 2013 at 12:23 AM, Glenn Waters <gwwat...@gmail.com> wrote: > >> Then /^I should see "(.*)"$/ do |query| >> BROWSER.text.include?(query).should == true >> BROWSER.close >> end >> > > Change this: > > BROWSER.text.include?(query).should == true > > to something like this: > > BROWSER.text.should match query > > It should give you more helpful error message. > > Željko > -- > https://leanpub.com/watirbook > > -- > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > watir-general@googlegroups.com > http://groups.google.com/group/watir-general > watir-general+unsubscr...@googlegroups.com > > --- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to watir-general+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.