UiPath Anchor Base Tutorial |Video upload date:  · Duration: PT11M0S  · Language: EN

Learn UiPath Anchor Base activity to find elements reliably using anchors and relative selectors for robust automation workflows

If your UiPath workflow treats moving buttons like they are hiding on purpose you are not alone. Anchor Base exists to stop that drama by binding a stable neighbor to the element you actually want. This keeps selectors honest and automation less fragile in real life RPA projects.

Get the project ready in UiPath Studio

Open UiPath Studio and create a sequence or flowchart. Make sure the target application is visible while you work. Trust me it helps and it also makes selector tuning less tragic. From the Activities panel drag the Anchor Base activity into your designer. Thats the container that will save your selectors from chaos.

How Anchor Base actually works

Anchor Base has two parts. One holds the stable anchor that rarely moves and the other runs the action that interacts with the target control. Inside the Anchor Base you will usually use Find Relative to point at the moving target based on the fixed anchor.

Pick a solid anchor

Good anchors are things that do not vanish whenever a user resizes a window or the layout does a dramatic reshuffle. Examples include

  • Labels that sit next to inputs
  • Static icons or headers
  • Field names or nearby text that is rendered reliably

A strong anchor reduces reliance on brittle coordinates and makes your selector logic easier to maintain in production.

Use Find Relative and tune selectors

Place a Find Relative inside the Anchor Base. Pick a direction and an offset that matches the UI layout and then fine tune the selector. Work through these steps

  1. Indicate the anchor element with the Anchor Base target selector.
  2. Use Find Relative to indicate the target element based on direction and offset.
  3. Open the selector editor and test variations. Use wildcards for parts that change often and avoid greedy patterns that match too much.
  4. Enable logging of selector values if you need to debug why something failed at runtime.

When a control is not a normal control

For non standard controls or images consider combining OCR with Anchor Base. OCR can grab text when selectors are useless and anchors help narrow the search area so OCR has less room to hallucinate.

Run tests and handle edge cases

Run your workflow in debug mode and watch how selectors behave across different window sizes and screens. Add retry scopes and sensible timeouts for flaky UIs. If an element occasionally moves to a different side of the anchor adjust your Find Relative strategy or add additional anchors for fallback.

Quick troubleshooting checklist

  • Is the anchor stable across screens and sizes
  • Are you using wildcards only where needed
  • Did you test with the selector editor and logging enabled
  • Have you added retry scopes and timeouts for intermittent failures
  • Would OCR plus anchor reduce false negatives for this control

Recap for your RPA sanity. Add Anchor Base in UiPath Studio. Choose a rock solid anchor. Use Find Relative to target the moving element. Tune selectors and test everything until it stops being dramatic. Do that and your automation will stop breaking every time the UI sneezes.

I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!

This is a dedicated watch page for a single video.