Hi, I use next code and it works for me
@ai = WIN32OLE.new("AutoItX3.Control") @ai.WinWaitActive("[REGEXPTITLE:Opening]") @ai.Send("{ENTER}") @ai.WinWait("Enter name of file to save to…", "", 5) @ai.WinActivate("Enter name of file to save to…") sleep(7) @ai.Send("#{$test_directory}\\#{name}") sleep(5) @ai.ControlClick("Enter name of file to save to…", "", "&Save") sleep(1) To print path for saving I use @ai.Send("#{$test_directory}\\# {name}") instead of ai.ControlSend("Enter name of file to save to...", "", "Edit",filepath) because this always type massed text. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---