Best way to click a child object
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2020
02:11 PM
04-23-2020
02:11 PM
Best way to click a child object
Hi,
What my script does is click the ChildObject then click the 'Link' object under it. I can do that by mapping each ChildObject but is there any better way to not map each ChildObject and Link
The behavior of the Link objects will only show if only the ChildObject is clicked.
Objects Structure Example:
Parent Object
--->ChildObject1
--->Link
--->ChildObject2
--->Link
--->ChildObject3
--->Link
Thanks!
Solved! Go to Solution.
Labels:
- Labels:
-
Object Recognition
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2020
12:17 AM
04-24-2020
12:17 AM
You can browse all links directly:
let links, linksCount;
links = Sys.Browser("*").Page("*").contentDocument.links;
linksCount = links ? links.Length : 0;
for (let i = 0; i < linksCount; i++) {
links.item(i).Click();
}
Un sourire et ça repart
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2020
06:43 AM
04-24-2020
06:43 AM
Thanks!
