Here is a code snippet. logon_page.top_frame.contains_text('some text').should_not be_nil
in logon_page.rb I have def logon_frame @browser.frame(:id, 'top_frame') end alias :top_frame :logon_frame and I gaurantee that there is a frame with id = 'top_frame' Fails with error message: Then in the Logon page I should see Guidewire ClaimCenter text # teps/then_common.rb:689 Unable to locate a frame with id top_frame (Watir::Exception::UnknownFrame Exception) c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.3/lib/watir/frame.rb: 48:in `locat e' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.3/lib/watir/frame.rb: 55:in `initi alize' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.3/lib/watir/ container.rb:102:in ` new' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.3/lib/watir/ container.rb:102:in ` frame' C:/Users/pinal/workspace/GuideWire/Guidewire/ClaimCenter/lib/ pages/logon_p age.rb:7:in `top_frame' C:/Users/pinal/workspace/GuideWire/Guidewire/Common/lib/steps/ then_common. rb:690:in `Then /^in (?:the )?(.*) page I should see (.*) text$/' test/features/testing.feature:10:in `Then in the Logon page I should see G uidewire ClaimCenter text' By putting some traces in frame.rb inside the watir 1.6.3 project, I know that it is never entering the for loop that loops over all the frames. On Apr 8, 12:11 pm, Tiffany Fodor <tcfo...@comcast.net> wrote: > Hi Andrew! > > Could you please provide a sample of your code and the error you're > getting? > > Thanks! > > -Tiffany > > On Apr 8, 12:10 pm, andrew.d...@lthree.com wrote: > > > > > I am installing on a new machine, and watir fails searcing for its > > first element (a frame in this case). The exact code works on many > > other machines. > > > So is there anything about IE that can cause watir to fail like this? > > > Andrew- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---