Forum Discussion
jose_pita
12 years agoSuper Contributor
See if this works:
function waitObjectByProperty(property, text, maxTime)
{
var object;
var counter=0;
if(maxTime== undefined)
maxTime= 20000;
if(property== undefined)
property= "objectIdentifier";
do
{
aqUtils.Delay(100);
counter+= 100;
Indicator.PushText(counter);
if(counter>maxTime)
{
Log.Warning("Time Exceeded");
return;
}
object= Sys.Browser(Project.Variables.browser).Page("*").Find(property,text, 30, true);
Indicator.PopText();
}
while (! object.Exists)
object.Click();
}