Hello, i used irb session to test my script, the problem also happened, i do
not why, and have no idea to fix that, can you give me more help ???

NoMethodError: undefined method `document' for nil:NilClass
        from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/frame.rb:52:in
 `document'
        from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/locator.rb:44:
in `each_element'
        from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/locator.rb:51:
in `locate'
        from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/container.rb:8
11:in `locate_tagged_element'
        from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/non_control_el
ements.rb:25:in `locate'
        from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:53:
in `assert_exists'
        from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:119
:in `text'
        from (irb):9

2010/8/27 Željko Filipin <[email protected]>

> On Fri, Aug 27, 2010 at 3:42 AM, Qiannan Zhang <[email protected]>
> wrote:
> > that is my script
>
> Well, I said "IRB session with the fewest steps that still reproduces the
> problem", not the entire script.
>
>
> Željko
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: [email protected]
> To unsubscribe: 
> [email protected]<watir-general%[email protected]>
>

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

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to