> Sun wrote: > > Yes...the problem I have is that I have a corporate > browser. I have in fact "checked" this so that it > should not reappear but it does anyway. Corporate IT > doesn't let us change the security levels for the > browser so...that is probably why the popups are > forced. > > > > OK, thank you for the suggestion. I have > implemented it. Problem now is, I get this message: > > undefined method `enabled_popup' for > #<Watir::IE:0x2c61aa4> > > > > Presumably I am missing a library somewhere? I > should be requiring something that I am not? > > But as I mentioned in the base note, I have > installed the current Ruby (1.8.4-20 stable), and the > development gem for Watir (watir-1.5.1.1065.gem) > so...here is the complete script text (which I am > running in freeride): > > > The enabled_popup() call wasn't added to the > development trunk until > about version 1079. Version 1081 is now available at > > http://wiki.openqa.org/display/WTR/Development+Builds > and that version > has enabled_popup(). > > David
David, thanks again. Okay, so did a "gem uninstall watir" for the 1065 branch and then did "gem install watir" on the watir-1.5.1.1081.gem (after moving the previous gem to a different location. A puts $LOAD_PATH does in fact show the new library loaded: === c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1081/./watir/win32ole c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1081/bin c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1081/. c:/ruby/lib/ruby/site_ruby/1.8 c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt c:/ruby/lib/ruby/site_ruby c:/ruby/lib/ruby/1.8 c:/ruby/lib/ruby/1.8/i386-mswin32 === However...while this gives me a change of indication, it still errors out. Now it complains as follows: === 1) Error: test_search(TC_article_example): ArgumentError: Only null and :title methods are supported c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1081/./watir.rb:2710:in `locate' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1081/./watir.rb:2736:in `initialize' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1081/./watir.rb:450:in `modal_dialog' === This is of course using the unit test code previously posted in the thread. If, however, I use the simple "Simple Google test written by Jonathan Kohl" which the suggested popup handling, that doesn't work either, but it fails differently. as seen below -- hangs after step 3 until the popup is manually clicked -- then dumps out the timeout message. === Step 1: go to the test site: http://www.google.com Action: entered http://www.google.com in the address bar. Step 2: enter 'pickaxe' in the search text field Action: entered pickaxe in the search field Step 3: click the 'Google Search' button Action: clicked the Google Search button. Timed out after 5.007 seconds. c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1081/./watir/waiter.rb:55:in `wait_until' === Any other ideas? --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=4012&messageID=11266#11266 _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general