Forum Discussion
Hi,
You should specify the PropertyName and PropertyValue as a strings in waitproperty method.
But you won't be able to access childs in this way. You'll be just waiting untill a specified property of the object will obtain the specified value.
As for waiting for a specific exjs control to appear I am using function like the following (JScript) to get it by its up to 3 properties:
You may convert it to VBS and pass arrays of properties and values to it instead of strings (I guess you won't need any array conversion like it is done in JScript with ConvertJScriptArray function)
function CheckChild_(Obj, TimeOut, Property1, Value1, Property2, Value2, Property3, Value3)
{
var properties, values, child, i=0;
properties = new Array(Property1, Property2, Property3);
values = new Array(Value1, Value2, Value3);
properties = ConvertJScriptArray(properties);
values = ConvertJScriptArray(values);
while(!Obj.FindChild(properties, values).Exists)
{
Delay(1000);
Obj.Refresh();
i++;
if (i>TimeOut) break;
}
Obj.Refresh();
return Obj.FindChild(properties, values);
}
Then you can get the element like this, waiting it for 60 seconds:
var Obj = CheckChild(ParentObj, 60, "className", "x-panel x-panel-noborder x-border-panel");
if (!Obj.Exists) return false;
Obj.Click();