In my case I found that the page I was hitting had this in it: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
When I removed this IE9-RC was able to click the button. It is still an issue for me, which I posted and Charley Baker posted back saying he was going to look into it. --Trampus On 3/14/11 3:16 PM, "A.Denter" <a.den...@sys-manage.com> wrote: 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 -- 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