I'm curious what the bug is, though. Why only one specific page from the entire web app, and why only on one machine?
On Aug 3, 2:11 pm, Ethan <notet...@gmail.com> wrote: > It is true that Vapir does not have this bug. > > On Tue, Aug 3, 2010 at 15:01, Basim Baassiri <ba...@baassiri.ca> wrote: > > HI Schase, > > > I had the same problem (method wasn't returning the named windows which > > causes the exception) and I switched to vapir which solved my problem > > > Not much of a suggestion but it is my experience > > > Basim > > > On Tue, Aug 3, 2010 at 2:53 PM, Schase <promac...@gmail.com> wrote: > > >> I'm writing automated test code for a web application under > >> development. All is well when I work on my development box and the > >> code behaves as expected when I run it there. Once the test code is > >> stabilized I check it in and it runs on a scheduled server. It has > >> been displaying strange behavior there. If the test ends with the > >> browser open at a particular page, the command @browser.close doesn't > >> work and I get the following error: > > >> NoMethodError: undefined method `>' for nil:NilClass > >> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/ > >> firefox.rb:315:in `close' > >> ../main_test_setup.rb:73:in `teardown' > >> (eval):3:in `each_without_optional_block' > >> (eval):3:in `each' > >> (eval):3:in `each_without_optional_block' > >> (eval):3:in `each' > > >> However, if I add a line that will click a link on that page that > >> returns it to a different page of the application, @browser.close > >> works just fine. This is also only a problem with Firefox. I checked > >> the source code for FireWatir::firefox.rb and it appears that it is > >> not finding the window that is there (even though it can find the link > >> on the page to click and get back to the working part of the > >> application!) > >> Dev box: Windows Server 2003 R2 x64 Standard edition service pack 2 > >> Scheduled Run box: XP Pro 2002 service pack 3 > > >> My test classes all inherit from Watir::TestCase > > >> Any suggestions on how I might debug this will be greatly appreciated. > > >> -- > >> Before posting, please readhttp://watir.com/support. In short: search > >> before you ask, be nice. > > >> You received this message because you are subscribed to > >>http://groups.google.com/group/watir-general > >> To post: watir-general@googlegroups.com > >> To unsubscribe: > >> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> > > > -- > > Before posting, please readhttp://watir.com/support. In short: search > > before you ask, be nice. > > > You received this message because you are subscribed to > >http://groups.google.com/group/watir-general > > To post: watir-general@googlegroups.com > > To unsubscribe: > > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> > > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com