Forum Discussion
anik_cadieux
12 years agoContributor
Thank you Paul, this solved the problem:
if (Sys.Browser("*").WaitChild("Window(\"#32770*",0).Exists)
{
Sys.Browser("*").Page("*").Confirm.Button(strAnswer).Click();
Sys.Browser("*").Page("*").Wait();
if (Sys.Browser("*").WaitChild("Window(\"#32770*",0).Exists)
{
Log.Error("Impossible de fermer le popup de confirmation.");
}
}
I still think the if (Sys.Browser("*").Page("*").Confirm.Exists) should be parametrized to adjust wait time...
if (Sys.Browser("*").WaitChild("Window(\"#32770*",0).Exists)
{
Sys.Browser("*").Page("*").Confirm.Button(strAnswer).Click();
Sys.Browser("*").Page("*").Wait();
if (Sys.Browser("*").WaitChild("Window(\"#32770*",0).Exists)
{
Log.Error("Impossible de fermer le popup de confirmation.");
}
}
I still think the if (Sys.Browser("*").Page("*").Confirm.Exists) should be parametrized to adjust wait time...
Related Content
- 2 years ago
Recent Discussions
- 14 hours ago