Hi Bret,
thanks for investigating. Here are some scenarios on my box using irb:
A) firefox already running
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'firewatir'
=> true
irb(main):003:0> b = Watir::Browser.new
TypeError: exception class/object expected
from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
firefox.rb:1078:in `raise'
from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
firefox.rb:1078:in `js_eval'
from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
firefox.rb:195:in `get_window_number'
from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
firefox.rb:162:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/
browser.rb:65:in `new'
from /usr/local/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/
browser.rb:65:in `new'
from (irb):3
firefox shows a popup box telling me that only one instance of firefox
can run simultaneously. Ok, no problem.
B) firefox _not_ running
irb(main):004:0> b = Watir::Browser.new
=> #<FireWatir::Firefox:0x1a39c50 @window_title="", @error_checkers=
[], @window_url="about:blank", @t=#<Thread:0x1a39b38 sleep>>
irb(main):005:0> b.close
The Browser.new call opens firefox as expected.
The b.close call closes the newly opened firefox window but never
returns on its own.
If I close ff now manually, the b.close call returns showing:
=> #<Thread:0x1a39b38 dead>
Hope this helps! Any ideas are appreciated!
Matthias
On 2 Dez., 17:27, Bret Pettichord <[EMAIL PROTECTED]> wrote:
> Short answer: no.
>
> Dave Hoover says this is browser.quit in SafariWatir. Similar is
> IE.close_all. We need to figure out what to do to be consistent.
>
> Regardless, this problem should not be causing your scripts not to
> return. Can you provide more information? Something else may be happening.
>
> Bret
>
> Matthias Marschall wrote:
> > Hi,
>
> > I'm using firewatir 1.6.2 on Mac OS 10.5.5 with firefox 3.0.4.
>
> > browser = Watir::Browser.new
>
> > opens firefox as expected.
>
> > browser.close
>
> > closes the window opened before, but does not quit firefox.
>
> > Is there any way to make firewatir quit firefox? Currently, my watir
> > scripts never return as they seem to be waiting on firefox to exit.
> > Manually quitting firefox works but is a bad workaround.
>
> > Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---