I got exactly the same problem with IE9 (rc). Even with the very
simple google script that works on all the other IE versions:
...
require 'rubygems'
require 'watir'
b = Watir::Browser.new
b.goto 'www.google.com'
b.text_field(:name => 'q').set '\"alien life forms\"'
b.button(:name => 'btnG').click
b.close
...

Any help would be greatly appreciated! :)

Andy
On 11 Mrz., 00:53, Trampus Richmond <trichm...@sugarcrm.com> wrote:
> As anyone looked into this?  It is still and issue for me.
>
> Thanks,
> --Trampus
>
> On 2/11/11 4:11 PM, "Trampus Richmond" <trichm...@sugarcrm.com> wrote:
>
> The following code works fine with FireFox, IE8, but not with IE9RC.  The 
> code finds the button control as it never throws an exception, but the button 
> is never clicked.
>
> require 'rubygems'
> require 'watir'
>
>    Watir::Browser.default = "ie"
>    b = Watir::Browser.new()
>    b.goto("http://www.twistedminds.org/sugarcrm";)
>    b.text_field(:id, "user_name").set("guest")
>    b.text_field(:id, "user_password").set("guest")
>    sleep(2)
>    print "Clicking...\n"
>    b.button(:id, "login_button").click()
>    print "Finished clicking.\n"
>    print "Sleeping...\n"
>    sleep(6)
>    print "Done...\n"

-- 
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