For some reason you're getting back a Fixnum with value of 4 from 
document.readyState call although it should be string. I'm using Ruby 1.9.3 
(you're on 1.9.2, maybe that makes that difference) and can get the correct 
readystate:
(rdb:1) doc.readyState
"complete"

complete means 4. Don't have any ideas why you're getting fixnum there.

Jarmo Pertman
-----
IT does really matter - http://itreallymatters.net


On Wednesday, August 22, 2012 1:48:53 AM UTC+3, Chad Larkin wrote:
>
> I'm running into an interesting issue setting up a Watir env on Win7 x64 
> with IE9.  When using the goto statement in IRB to goto yahoo.com I am 
> getting an undefined method error.
>
> the steps in IRB are:
> require 'rubygems'
> require 'watir'
> $b=Watir::Browser.new
> $b.goto('http://www.yahoo.com')
>
> the error returned is:
> NoMethodError: undefined method `to_sym' for 4:Fixnum
>         from 
> F:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.1.0/lib/watir-c
> lassic/ie-class.rb:542:in `block in wait'
>         from F:/Ruby192/lib/ruby/1.9.1/timeout.rb:58:in `timeout'
>         from 
> F:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.1.0/lib/watir-c
> lassic/ie-class.rb:520:in `wait'
>         from 
> F:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.1.0/lib/watir-c
> lassic/ie-class.rb:365:in `goto'
>         from (irb):4
>         from F:/Ruby192/bin/irb:12:in `<main>'
>
> Any ideas?
>
> Thanks
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to