Thanks Panato it worked... On Wednesday, August 14, 2013 11:56:36 AM UTC+1, watir webdriver wrote: > > In watir-webdriver, is it possible to verify text using OR statement in a > child window? > > and should fail if its anything other than 'best' or 'catalog' > > *My step definition is as below :* > > * Then /^I should see either "best | catalog" on the page$/ do > @browser.window(:title => "child").use do > > puts @browser.text.should == 'best' || @browser.text.should == 'catalog' > > @browser.window(:title => "child").close > end > end* > > Its printing all the text from the parent window and failing...Here I just > have to verify if either of the text is present in the child window or not > and if it exists return 'true' > > Any thoughts please? > > Thanks in-advance. > > > >
-- -- 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.
