Don't do that. Use regular expressions instead, something like this: system("rubyw -e \"require 'win32ole'; @autoit=WIN32OLE.new ('AutoItX3.Control'); waitresu...@autoit.winwait '[REGEXPTITLE:Choose (f|F)ile( to Upload)?]', '', 15; sleep 1; if waitresult == 1\" -e \"@autoit.ControlSetText '[REGEXPTITLE:Choose (f|F)ile( to Upload)?]', '', 'Edit1', '#{setPath}'; @autoit.ControlSend '[REGEXPTITLE:Choose (f| F)ile( to Upload)?]', '', 'Button2', '{ENTER}';\" -e \"end\"")
You also had one typo on your fix, where it was written "Chose" instead of "Choose" Anyway, I am using the code above and it is working with IE6, IE7 and IE8 successfully. Jarmo On Mar 31, 1:36 pm, Željko Filipin <zeljko.fili...@wa-research.ch> wrote: > On Thu, Mar 26, 2009 at 00:12, Paul Rogers <paul.rog...@shaw.ca> wrote: > > some one on irc wanted to get the browser and os versions. > > I could also use browser version for my "Fixed file uploads for IE8" patch > (not compatible with IE6 and IE7): > > http://tinyurl.com/c3gznm > > If I get the time these days I will add browser_version to watir and make my > fix compatible with all IE versions. > > Željko --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---