Andrei,
Thanks for your help.
I tried this...
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="Word.Document" name="ProgId" />
<meta content="Microsoft Word 12" name="Generator" />
<meta content="Microsoft Word 12" name="Originator" />
var MyItem = Item_LocateInPage(Aliases.Sys.iexplore.pageStarlightLicenseServer20.document.all,
"sdfg");
if(MyItem != null) {MyItem.Click()}
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="Word.Document" name="ProgId" />
<meta content="Microsoft Word 12" name="Generator" />
<meta content="Microsoft Word 12" name="Originator" />
function Item_LocateInPage(TREE_MODEL_OBJECT, SearchText)
{
Log.Message("Item_LocateInPage")
if(TREE_MODEL_OBJECT.ChildCount < 1)
{Log.Message("No " + TREE_MODEL_OBJECT + " 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.
I also tried:
var MyItem = Item_LocateInPage(Sys.Process("iexplore", 2).Page("http://127.0.0.1:3000/").document.all,
"sdfg");