Hi there, In my app clicking a link opens a new browser where I've check if a particular text is present or not.I've implemented as below :
*Cucumber Step definition:* When I click on the debug information link create page Then the debug info should show the "Product catalog" on the debug page When(/^the debug info should show the "(.*?)" on the debug page$/) do |strategy| if @browser.text.should == strategy puts "Test passed!" else puts "Test failed!" end end My code is returning all the texts present in the parent window. Can anyone help me with this ? 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.
