Hi All,
I am using Win32::IEAutomation to navigate a website, click website buttons. This works well as LWP or Mech would not work for this site. Problem is when I choose to download file the "Download File" window appears and I can not get the Save button to fire. Here is my code, thoughts suggestions?
use Win32::GuiTest qw(FindWindowLike GetWindowText SetForegroundWindow
+ SendKeys);
$Win32::GuiTest::debug = 0; # Set to "1" to enable verbose mode
my @windows = FindWindowLike(undef, "^File Download","#32770");
SetForegroundWindow($windows[0]);
print "$windows[0]>\t'", GetWindowText($windows[0]), "'\n";
PushButton("^\&Save",1);
sleep(2);
SendKeys("%S");
while(FindWindowLike(0, "^Download Complete"))
{
PushButton("Close",2);
}