Using Anchor Base Activity

Hey folks,
I’m a bit new to UiPath but I have a few years programming experience (not VB/C#).
I’ve been testing out studio by building out a sample bot that iterates through a list of ids and navigates to a its respective profile page, grabs some data and writes back somewhere. I’ve found that traditional selectors are unreliable eg. Get Full Text. I tried out Anchor Base and it seems to reliably get the correct information. It works but it’s slow. This is compounded by the fact that I’m re-adding anchors for each profile page visited. Is this the correct way to do this? Is there some way to re-use the anchors once they’ve been added?

If it were written in code, it would look like:

// return reference to an anchor already made
const anchorRef = useAnchor(anchorToUse)

anchorRef(activityToRun)

// instead of

for(let x = 0; x < someCollection.length; x++){
   const newAnchor = createNewAnchor()
   newAnchor(activityToRun)
}

This is what it looks like in studio:

Hey @Dowen_Robinson
I would suggest you to explore UiAutomationNext.Activities packages there are much faster and also helps you easily indicate anchors without actually using anchor base activity
here are some video links: Google Form Automation, Excel Automation | UI Automation Next Activities - YouTube

cheers,
parth

1 Like

This is nice. I love it.

thank you @Dowen_Robinson
Please mark it as solution if it helped you.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.