Forum Discussion
ArtemS
Alumni
14 years agoHi Lalit,
In the similar thread, Alex mentioned that after the Download dialog becomes visible, on some OS its buttons still remain disabled for some time. I tried to investigate this on a test machine. Waiting for the "Enabled" property did not work, however, adding a small hard-coded delay (200 ms and more) seems to solve the playback issues.
(This seems to work even without adding the "#32770" class to MSAA.)
I hope this workaround works fine for you.
In the similar thread, Alex mentioned that after the Download dialog becomes visible, on some OS its buttons still remain disabled for some time. I tried to investigate this on a test machine. Waiting for the "Enabled" property did not work, however, adding a small hard-coded delay (200 ms and more) seems to solve the playback issues.
(This seems to work even without adding the "#32770" class to MSAA.)
function IE8DownloadSim()
{
var iexplore;
TestedApps.iexplore.Run();
iexplore = Sys.Process("IEXPLORE", 2);
iexplore.ToUrl("http://smartbear.com/support/articles/testcomplete/cross-browser-testing/");
// Initiate the file download
iexplore.Page("http://smartbear.com/support/articles/testcomplete/cross-browser-testing/").Form("aspnetForm").Panel(1).Panel(0).Panel(6).Panel(1).Table(0).Cell(3, 0).Link(0).Click();
// These dialog actions are specific to IE8 and are not replayed
// unless delayed for 200 ms or more
Delay(200);
iexplore.Window("#32770", "File Download").Window("Button", "&Save").ClickButton();
Delay(200);
iexplore.Window("#32770", "Save As").Window("Button", "&Save").ClickButton();
Delay(200);
iexplore.Window("#32770", "Download complete").Window("Button", "Open &Folder").ClickButton();
}
I hope this workaround works fine for you.