100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace
Programming

UI Automation

Understand how Power Automate Desktop identifies, targets, and interacts reliably with on-screen controls using selectors, the UI element tree, and fallback targeting methods.

RPA & AIIntermediate9 min readJul 10, 2026
Analogies

How UI Automation Targets On-Screen Controls

UI automation is the mechanism underneath every desktop flow action that clicks, types into, or reads from a control: rather than clicking raw screen coordinates, Power Automate Desktop builds a hierarchical 'UI element tree' for a target application, similar to a DOM tree for a webpage, and each action stores a 'selector' describing the path from the root window down to the specific control. This means the same 'Click' action keeps working even if the window is resized, moved, or repositioned on screen, because the selector resolves by the control's place in the hierarchy and its properties (name, automation ID, class) rather than by fixed x/y coordinates. The UI Explorer tool in PAD lets you hover over any control in a running application to inspect its full selector path and individual properties before an action is even recorded, which is essential for building automation against applications the recorder alone struggles to capture cleanly.

🏏

Cricket analogy: Like a fielding position defined relative to the batter's stance (short leg, gully) rather than a fixed GPS coordinate on the ground, a selector locates a control relative to its place in the UI tree, not a fixed screen pixel.

Selector Editor, Anchors, and Dynamic Attributes

Raw recorded selectors often embed brittle attributes like a numeric index ('Instance = 3') that break the moment a list reorders or a new row is inserted; the selector editor lets you replace index-based matching with a stable attribute such as 'Name' or 'AutomationId' when the target application exposes one, and you can mark individual attributes as 'variable' so a single selector can dynamically match different rows or tabs at runtime by injecting a Power Automate variable into that attribute. For grid-like UIs where no attribute uniquely identifies a row, an 'anchor' element, a nearby stable control used as a relative reference point, lets you say 'the button next to the row containing this exact order number' instead of relying on a fragile absolute index. PAD's fuzzy selector matching can also tolerate minor attribute drift (for example, matching on partial text) when exact matching is too strict for an application whose labels change slightly between versions.

🏏

Cricket analogy: Like replacing 'the third fielder from the boundary' with 'point' as a fixed fielding name, swapping an index-based selector for a named attribute like AutomationId makes the target resolve correctly regardless of reordering.

Fallback Targeting: Coordinates and Relative Positioning

When an application renders through a technology PAD can't fully inspect, such as certain Java Swing apps, some game engines, or heavily virtualized Citrix sessions, selector-based targeting may fail entirely, and PAD falls back to coordinate-based actions like 'Mouse click' at a fixed screen position or relative-to-window position. Relative positioning (offset from a window's top-left corner rather than the absolute screen) is more robust than absolute screen coordinates because it survives the window being moved, though it still breaks if the window is resized or the target's layout shifts internally. For the most demanding cases, PAD's 'Get details of window' plus custom offset math, or scripting actions calling into UI Automation APIs directly via a .NET/PowerShell script, provide an escape hatch when no built-in action reliably targets the control.

🏏

Cricket analogy: Like marking a fielding drill spot with cones on the ground rather than describing it by role, absolute screen-coordinate clicking works only until the practice pitch (window) is moved, unlike a role-based selector.

text
// Example selector with a variable attribute for a dynamic row target
// (edited in the PAD Selector Builder)
<html app='chrome.exe' title='Order Portal' />
  <table id='OrdersGrid' />
    <tr row='%CurrentRowIndex%' />   // marked as variable, injected at runtime
      <ctrl name='ApproveButton' automationid='btnApprove' />

// Loop injecting the variable before each click
LOOP FOR EACH CurrentRow IN OrderRows
    SET CurrentRowIndex = CurrentRow.Index
    UI Automation: Click 'ApproveButton' using selector above

The UI Explorer's 'Highlight' and 'Freeze' features let you hover over overlapping or dynamically shown controls (like a dropdown menu) and inspect their exact selector before you ever run the flow, which is far faster than trial-and-error editing after a recording fails.

Coordinate-based and relative-position clicks assume a fixed screen resolution and window size at design time; running the same flow on an unattended machine with a different resolution, scaling factor, or maximized-vs-windowed state can cause clicks to land on the wrong control entirely, so lock the target window's size at the start of the flow whenever coordinate-based actions are unavoidable.

  • UI automation targets controls via a hierarchical UI element tree and selectors, not raw screen coordinates, so it survives window moves and resizes.
  • The Selector Editor lets you replace brittle, index-based attributes with stable ones like AutomationId or Name.
  • Marking a selector attribute as variable enables one selector to dynamically target different rows, tabs, or items at runtime.
  • Anchor elements provide a stable nearby reference point for targeting rows in grids with no unique identifying attribute.
  • Coordinate-based and relative-position clicks are fallbacks for applications PAD can't fully inspect, and are the most fragile targeting method.
  • The UI Explorer lets you inspect a control's exact selector and properties before recording or editing an action.
  • Locking the target window's size and resolution reduces the risk of coordinate-based clicks landing on the wrong control.

Practice what you learned

Was this page helpful?

Topics covered

#Programming#PowerAutomateStudyNotes#UIAutomation#Automation#Targets#Screen#Controls#StudyNotes#SkillVeris#ExamPrep

Frequently Asked Questions

21 categories · pick one to explore

Where can I get free study notes for programming and tech subjects?
SkillVeris offers completely free study notes covering programming and tech subjects, with no signup fees or paywalls. The notes are structured by course and topic, written for quick understanding, and enriched with the Learn Through Hobbies analogy method, so you can revise concepts through cricket, music, gaming, cooking and more.
Are SkillVeris study notes good for exam revision?
Yes, the study notes are designed for efficient revision: each topic answers its heading immediately, keeps explanations concise, and links to related glossary terms and cheat sheets. Students preparing for university exams or certification tests use them as quick revision notes because they distil concepts without the padding of full textbooks.
What subjects do the free study notes cover?
The study notes span the platform's main domains, including AI and machine learning, Python and programming, web development, DevOps, cloud, security and databases. Coverage mirrors the 37 live courses, so notes exist for the topics you are actually studying, and new note sets are added as courses launch.
How are SkillVeris study notes different from regular textbooks?
The notes are answer-first, concise and free, whereas textbooks are long and often expensive. Each section explains one concept directly, then reinforces it through selectable hobby analogies like cricket or cooking. Notes also cross-link to the glossary, blog and cheat sheets, letting you jump to related material instantly instead of flipping pages.
Can I use the developer study material without creating an account?
The study notes are free to access, and SkillVeris does not charge anything for its developer study material at any point. Browsing notes is straightforward from the Study Notes section, and if you want progress tracking, certificates and AI Mentor conversations tied to your learning, a free account unlocks those extras.
Do the study notes explain concepts with analogies?
Yes, this is a signature SkillVeris feature. Study notes use the Learn Through Hobbies method, explaining technical concepts through analogies from twelve domains including cricket, music, gaming, photography, travel, movies, fitness, chess, cooking, finance, business and sports. You can switch the analogy domain instantly to whichever hobby makes the concept click.
Are the revision notes suitable for last-minute exam preparation?
Yes, revision notes on SkillVeris work well for last-minute preparation because every section states the answer in its first sentences, so skimming is genuinely effective. Pair them with the relevant cheat sheet for formulas and syntax, and use the glossary for any unfamiliar term you meet while cramming.
Is there free study material for AI and machine learning?
Yes, SkillVeris provides free study notes across its AI and ML catalogue, covering Python for AI, deep learning frameworks like PyTorch and TensorFlow, Hugging Face Transformers, Large Language Models, RAG, AI agents and MLOps. All of it is free, making it a strong resource for Indian students and global learners alike.
Can beginners understand the study notes, or are they for experts?
Beginners can absolutely use them. The notes are written in plain language, define terms as they appear, and lean on hobby analogies to make abstract ideas concrete. Difficulty scales with the underlying course level, so beginner-course notes stay gentle while advanced-course notes go deeper, and the glossary supports you throughout.
How do study notes connect with SkillVeris courses?
Study notes are organised by course and topic, so they map directly to the structured courses and their 24–40-lesson curriculum. Many learners study a lesson first, then use the matching notes for revision before module assessments and the final exam, where 80 percent is required to pass and earn the certificate.
Are there study notes for Python specifically?
Yes, Python is well covered through notes tied to the Python-focused courses, including Python for AI and ML. Topics span fundamentals through applied machine learning usage. You can reinforce the notes with Python practice in Code Lab, which runs code in your browser with no installation required.
Do the study notes include code examples?
Yes, study notes include code examples wherever a concept is best shown in code, alongside explanations, key points and analogies. Reading a snippet in the notes and then reproducing it yourself in Code Lab is an effective loop, since Code Lab lets you run code in the browser across six languages.
How often is new study material added to SkillVeris?
Study material grows alongside the course catalogue. Whenever new courses join the platform's 37 live courses, matching study notes, glossary entries and cheat sheets are added so the resources stay in sync. Existing notes are also refined over time, so it is worth revisiting topics you studied earlier.
Can I use SkillVeris notes to prepare for technical interviews?
Yes, the notes make excellent interview revision because they compress each concept into direct, answer-first explanations, which mirrors how you should answer interview questions. Combine them with the SkillVeris interview questions feature, which includes readiness scoring, to test whether your revision has actually made you interview-ready.
Are the study notes mobile-friendly for studying on the go?
Yes, the study notes are built to load fast and read comfortably on mobile devices, so you can revise during a commute or between classes. Sections are short and answer-first, which suits small screens, and analogy switching works on mobile too, letting you study anywhere without carrying books.
What is the difference between study notes and cheat sheets?
Study notes explain concepts in depth with context, examples and analogies, making them ideal for learning and revision. Cheat sheets are compact quick-reference summaries of syntax, commands and key facts, ideal once you already understand a topic. Most learners study the notes first, then keep the cheat sheet handy while coding.
Do study notes help if I am stuck on a course lesson?
Yes, reading the matching study notes often clarifies a lesson because the same concept is explained from a different angle, frequently with a different analogy. If you are still stuck, ask the AI Mentor, which answers 24/7 at Quick, Detailed or Deep-dive depth until the idea genuinely makes sense.
Is there free study material for DevOps and cloud topics?
Yes, SkillVeris carries free study notes for DevOps and cloud topics as part of its coverage across 37 live courses. The material suits learners following the DevOps Engineer or Cloud Engineer paths, and it links to related glossary terms and cheat sheets so you can revise the whole toolchain in one place.
Can school or college students in India use these notes for projects?
Yes, students across India and worldwide use SkillVeris notes for coursework, projects and exam preparation, and everything is free, which matters for student budgets. The notes explain concepts clearly enough to cite in project reports, and Code Lab lets you prototype the project code directly in your browser.
How should I combine study notes with other SkillVeris resources?
A proven loop: learn from a course lesson, revise with the matching study notes, look up unfamiliar terms in the glossary, keep the cheat sheet open while practising in Code Lab, and quiz yourself with interview questions. The AI Mentor fills any remaining gaps 24/7, at whatever depth you need.

What Learners Say

Real journeys from the SkillVeris community — swipe for more.

SkillVeris taught me Python through Cricket. Now I’m building real projects and feeling confident!
Arjun S. · B.Tech Student
The best platform for hobby-based learning. Concepts finally stick.
Priya R. · Data Analyst
I went from zero coding to a portfolio of projects — all by learning through my love for gaming. Landed my first internship!
Kabir M. · CS Undergraduate
Trending Topics50 popular tags — tap to explore
Trending CoursesAll 37 free courses — tap to browse