Hello, I am just following this script on http://watirwebdriver.com/: require 'watir-webdriver' b = Watir::Browser.new b.goto 'bit.ly/watir-webdriver-demo' b.text_field(:id => 'entry_0').set 'your name' b.select_list(:id => 'entry_1').select 'Ruby' b.select_list(:id => 'entry_1').selected? 'Ruby' #~ b.div(:class => 'ss-form-entry').button.click -- This line gives 'element not found' error, so changed this to: b.button(:name => 'submit').click b.text.include? 'Thank you'
The "b.button(:name => 'submit').click" does not work in IE8. I tried .focus and .flash and they work, but .click does not. It works correctly on chrome and firefox. I have also tried: b.button(:name => 'submit').fire_event "mouseover" b.button(:name => 'submit').fire_event "click" which again does not work. My protected mode setting is ON in all places and the pop-up blocker is OFF. I do not have a Google Toolbar that might block anything. Could somebody please help me find the problem here? Could you try this script on your IE8 browser and see if it works for you? Thanks, Prajakta -- 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