Using 1.02
If a new Firefox object is created and the close method is called, a
browser session isn't started when the object is reinitialized. I'm
basically trying to get Firewatir to work with our existing test
framework, which uses Test::Unit - there's a lot of opening and closing of
the browser within test suites and in between running each suite. I spent
some time looking at the code and came up with a workaround - I added an
@@closed variable to the close method, do a check for that when initialize
is called and then reinitialize one of the other variables. I could have
broken something else but it seems to be working for me so far. It also
eliminates the other issue I entered (#26). I'm attaching a modified
firewatir.rb file in case it might be of use, have commented my additions
(search for 'JF').
Steps:
f = Firefox.new
f.goto('www.google.com')
f.close
f = Firefox.new
Original issue reported on code.google.com by jfitis...@gmail.com on 11 May 2007 at 8:25
Original issue reported on code.google.com by
jfitis...@gmail.com
on 11 May 2007 at 8:25Attachments: