Thank you for responding.
From my understanding, the IF statement in question should not be affecting the portion of the script containing the FindChild:
if(TREE_MODEL_OBJECT.ChildCount < 1)
{Log.Message("No Children Detected in search"); return null}Log.Message("Searching " + TREE_MODEL_OBJECT.ChildCount + " children...");
var obj = TREE_MODEL_OBJECT.FindChild("NativeWebObject.outerText", SearchText, 100);
if (false == obj.Exists)
{
Log.Error(SearchText + " not found.");
return null;
}
else
return obj;
=============================
Results:
Item_LocateInPage
Searching 764 children...
sdfg not found.
Since my script is returning the number of children found and not "No Children..." I think the FindChild is executing but returning nothing unaffected by the <1.
Appreciate your help.
-Pv-