How are you using 'watir' for firefox? You should be using 'firewatir',
right?

-Prajakta

On Thu, Feb 3, 2011 at 7:43 PM, Stephen Mc Gowan <[email protected]> wrote:

> Hi,
>
> I'm seeing an intermittent watir issue with firefox. I really don't know
> whats causing it, I can't seem to cause it to happen reliably. I've seen a
> thread from last may discussing something similar and a really hacky work
> around:http://osdir.com/ml/watir-general/2010-05/msg00134.html
>
> I guess I'm hoping some better solution might have popped up in the
> meantime.
>
> It's giving me the following error.
>
>
> C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/jssh_socket.rb:19:in
> `js_eval': this.docShell is null (JsshSocket::JSTypeError)
>
> C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/firefox.rb:194:in
> `set_browser_document'
>
> C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/firefox.rb:52:in
> `initialize'
>
> C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/watir/browser.rb:65:in
> `new'
>
> C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/watir/browser.rb:65:in
> `new'
>     from ./Ruby/goto.rb:7
>
> and goto.rb is here:
>
> require "rubygems"
> require "watir"
>
> puts('ruby: Using firefox')
> Watir::Browser.default = 'firefox'
> puts('ruby: Starting browser')
>
>
> b = Watir::Browser.new
> puts('ruby: Browser started')
> b.maximize
> b.goto(ARGV[0])
>
>
> Any ideas?
>
> Cheers,
> --
> Stephen Mc Gowan.
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]<watir-general%[email protected]>
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to