Forum Discussion
gunnettmd
13 years agoContributor
This is in JScript and not parameterized but it does write out the text of only the children links under firstDiv.
I would suggest reading up on the Find, FindChild and FindAllChildren methods in the Test Complete help.
function test ()
{
var myBrowser = Sys.Browser("iexplore").Page("*");
var firstDiv = myBrowser.Find("idStr", "firstDiv", 8);
var Links = firstDiv.FindAllChildren("ObjectType", "Link", 4);
Links = (new VBArray(Links)).toArray();
for (var i = 0; i < Links.length; i++)
Log.Message(Links.namePropStr);
}
Related Content
Recent Discussions
- 6 minutes ago
- 6 days ago
- 10 days ago