I am having a play around with this on Win7/Ruby 1.9.2, but can't get very
far.

What am I doing wrong?

irb(main):001:0> require 'watir'
=> true
irb(main):002:0> b = Watir::Browser.new
=> #<Watir::IE:0x..f90492b14 url="about:blank" title="">
irb(main):003:0> b.goto 'www.google.com'
=> 1.363929
irb(main):004:0> b.text_field(:name => "q").set "s"
NoMethodError: unknown property or method: `createEvent'
    HRESULT error code:0x80020006
      Unknown name.
        from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.0.rc2/lib/watir/element.rb:377:in
`method_missing'
        from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.0.rc2/lib/watir/element.rb:377:in
`create_event'
        from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.0.rc2/lib/watir/element.rb:343:in
`dispatch_event'
        from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.0.rc2/lib/watir/input_elements.rb:376:in
`set'
        from (irb):4
        from C:/Ruby192/bin/irb:12:in `<main>'
irb(main):005:0>

Cheers,

Alister Scott
Brisbane, Australia
Watir Web Master: http://watir.com
Blog: http://watirmelon.com
LinkedIn: http://www.linkedin.com/in/alisterscott

"There are two ways to get enough: One is to continue to accumulate more and
more. The other is to desire less." *~ G. K. Chesterton*


On Mon, Jul 25, 2011 at 8:59 PM, Jari Bakken <[email protected]> wrote:

> On Sun, Jul 24, 2011 at 11:53 PM, Jarmo <[email protected]> wrote:
> > Good news everyone!
> > I've found some time to play with Watir and managed to release a new
> version
> > - 2.0.0.rc2 (rc1 had buggy dependency, sorry)!
> > There are some big changes including 0-based-indexing, which is enabled
> by
> > default and not releasing new versions of FireWatir.
> > Also, all collection factory methods accept now (multiple)
> > specifiers/locators. A lot of these changes are compatible with
> > Watir-WebDriver (see the list of incompatibilities compared with previous
> > versions
>
> Nice work!
>
> > * renamed CheckBox class to Checkbox
> > * renamed CheckBoxes class to Checkboxes
>
> What's the rationale for this? This adds a new incompatibility with
> watir-webdriver and breaks backwards compatibility for anyone relying
> on the class name. The change seems rather arbitrary.
>
> Jari
>
> --
> 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]<http://groups.google.com/group/watir-general%[email protected]>
>
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to