Kimoanh
15 years agoOccasional Contributor
Jscript does not recognize I.E MSGBox
I am using TC8 to generate an automation test for a web application, in the test appears a MSGBox windows. TC Jscript does not recognize the msgbox.
Here is my code:
page["Wait"]();
var WarningWin = Sys.Process("iexplore").WaitWindow("#32770", "Windows Internet Explorer");
if(Sys.Process("iexplore").WaitWindow("#32770", "W*").Exists)
{
//Warning Windows.
WarningWin.Window("Button", "OK").ClickButton();
}
P.s: I evaluated the msgbox window, it's not exist !!!!
Thanks for any help.