Forum Discussion
ArtemS
Alumni
14 years agoHi Lalit
I used the script below. It deals with the SmartBear site. If your site is publicly available, I can try to adopt the script for it. (You may post a link here, or submit it via the Contact Support form mentioning this forum thread.)
I used the script below. It deals with the SmartBear site. If your site is publicly available, I can try to adopt the script for it. (You may post a link here, or submit it via the Contact Support form mentioning this forum thread.)
function IE8DownloadSim()
{
var iexplore;
TestedApps.iexplore.Run();
iexplore = Sys.Process("IEXPLORE", 2);
iexplore.ToUrl("http://smartbear.com/support/articles/testcomplete/cross-browser-testing/");
// Initiate 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 "#32770" WndClass dialogs are treated as MSAA objects
iexplore.Window("#32770", "File Download").Window("Button", "&Save").ClickButton();
iexplore.Window("#32770", "Save As").Window("Button", "&Save").ClickButton();
iexplore.Window("#32770", "Download complete").Window("Button", "Open &Folder").ClickButton();
}