korimo / firewatir

Automatically exported from code.google.com/p/firewatir
0 stars 0 forks source link

close() followed by new does not open a new browser session #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Attachments:

GoogleCodeExporter commented 9 years ago
Forgot to mention, this is on Windows...

Original comment by jfitis...@gmail.com on 11 May 2007 at 8:34

GoogleCodeExporter commented 9 years ago
Same as issue 26

Original comment by ang...@gmail.com on 19 Jun 2007 at 5:18