Hello, Try this... Substitutethe ("Windows Internet Explorer", 'OK') with the title (if given) and the name of the control you want to click... I have the same issue with OK's, Close's and Yes's. This little script solved it for my application woes.
require 'win32ole' begin autoit = WIN32OLE.new('AutoItX3.Control') loop do autoit.ControlClick("Windows Internet Explorer",'', 'OK') autoit.ControlClick("Windows Internet Explorer",'', 'Close') autoit.ControlClick("Security Information",'', '&Yes') autoit.ControlClick("Security Alert",'', '&Yes') autoit.ControlClick("Security Warning",'', 'Yes') autoit.ControlClick("Message from webpage",'', 'OK') # other options can be included here sleep 3 end rescue Exception => e puts e end On Mon, Dec 6, 2010 at 12:08 PM, slindsey3000 <slindsey3...@gmail.com>wrote: > I can't believe this is so tough in Watir? Clicking on confirm seems > impossible? > > Anyone? > > -- > 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<http://groups.google.com/group/watir-general%0awatir-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