you can even do BROWSER.text.should include(query)
On Mon, Feb 11, 2013 at 4:49 AM, Željko Filipin <[email protected]>wrote: > On Mon, Feb 11, 2013 at 12:23 AM, Glenn Waters <[email protected]> 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. > > [email protected] > http://groups.google.com/group/watir-general > [email protected] > > --- > 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 [email protected]. > 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. [email protected] http://groups.google.com/group/watir-general [email protected] --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
