It has been a while I'd say. A quick refactor is all that needed and perhaps checking the latest documentation. You'll be overjoyed with the latest enhancements and be aware of some code depreciated.
See http://wiki.openqa.org/display/WTR/Cheat+Sheet require 'Watir' ie=Watir::Browser.new ie.goto('www.google.com.uk') .... etc... On Tuesday, April 2, 2013 4:00:53 AM UTC-5, 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.
