Welcome back! As Kevy indicated some of the methods have changed. So your old code may need a little refactoring.
You should also check out watir-webdriver it's the same watir API but now running on top of Webdriver, which allows great cross browser support.. IE, Firefox, Chrome, Opera, Safari, Mobile emulators.. The watir-webdriver website <http://watirwebdriver.com/> covers the basics, and you can ask questions on Stack Overflow or here if you get stuck at any point. On Tuesday, April 2, 2013 2:00:53 AM UTC-7, gary wrote: > > Hi all, After a bit of a lay off and back to using watir but I appear to > be struggling with a few basics which don't appear to work as the used to? > The following script used to work fine in IE8 (and still does) but doesn't > seem to work in IE9 or IE10: > it's the click event which simply fails to click with both options so any > hints would be greatly appreciated. > Ta...... > > require 'Watir' > include Watir > ie=IE.new > ie.goto("www.google.co.uk") > ie.text_field(:id,'gbqfq').set('ruby programming') > > ie.button(:name, 'btnK').click > ie.button(:name, 'btnK').fire_event('onclick') > -- -- 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] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
