How RPA Bots Read a Screen, and Why a Moved Button Breaks Them
Software robots copy what people do on screen: they click, type and read. How they find a field or a button explains why they break so often, and how to build bots that fail safely.

Robotic process automation sounds like hardware, but there is no robot arm. An RPA bot is software that operates other software through its user interface. It opens applications, clicks buttons, types into fields and copies values from one screen to another. It does what a clerk would do, only faster and without breaks.
That approach is the reason RPA spread so quickly. It needs no change to the systems it works with, so a company can automate a task in an old application that offers no interface for other programs. The same approach is also why RPA bots are known for breaking. A bot that depends on a screen depends on that screen staying the same.
This article looks at the technology under the hood. It explains how bots are built and how they find things on screen, why they fail and what makes some bots far more reliable than others.
The parts of an RPA system
Most RPA platforms consist of three parts. A design tool lets developers build workflows, often by dragging activities into a sequence or by recording a person's actions. A runtime, sometimes called the robot or agent, executes those workflows on a desktop or a server. An orchestrator schedules jobs, distributes work, stores credentials and collects logs.
Bots run in two main modes. Attended bots work alongside a person on the same computer and start when the user triggers them, for example to fill a form from an email. Unattended bots run on their own on virtual machines, often at night, and work through queues of cases. Unattended bots carry more risk, because no one watches each step.
How a bot finds a button
The core technical question in RPA is how a bot identifies the right element on a screen. There are three common methods, and they differ greatly in reliability.
- Selectors read the structure behind the interface. On a web page, that is the page code. In a desktop program, it is the accessibility information the operating system provides. A selector might point to the field labeled invoice number in the window titled payments.
- Image matching compares parts of the screen with a stored picture of the button or field. It works where no structure is available, such as remote desktop sessions, but it is sensitive to colors, scaling and display themes.
- Coordinates simply click at a fixed position on the screen. This is the most fragile method, because any change in window size or layout sends the click to the wrong place.
Good developers prefer selectors and make them as stable as possible. They anchor on labels and fixed attributes rather than on position or on generated identifiers that change with each release. Optical character recognition helps read text from images and scanned documents, but it adds its own error rate.
Why bots break
Most RPA failures are not dramatic. They come from small changes that a person would barely notice. A software update moves a button or renames a field. A new cookie banner or security notice appears. A page loads more slowly than usual, and the bot clicks before the field exists. A password expires, or a login suddenly requires a second factor that the bot cannot provide.
Data causes trouble as well. A supplier sends invoices in a new layout. A customer name contains an unusual character. A date arrives in a different format. A person adapts without thinking. A bot either stops or, worse, carries on and writes wrong values into a system.
A bot that stops is an inconvenience. A bot that keeps going after something has changed is a liability.
This is why the number of bots matters less than the number of things they depend on. Each application, screen and data source a bot touches is a point where it can fail.
Building bots that fail well
Reliable bots are designed with failure in mind. They wait for a specific element to appear rather than for a fixed number of seconds. After every important step, they check the result. Did the record save? Does the total match? Did a confirmation number appear? If not, they stop the case and report what went wrong.
Work is best organized in queues of individual cases. When one case fails, the bot logs it, sets it aside and moves on to the next. A person then sees a list of exceptions with a clear reason and, ideally, a screenshot of the moment of failure. Retries help with temporary problems such as slow loading, but they need a limit. Without one, a bot may submit the same payment twice.
Testing matters as much as in any software project. Bots should be tested against the next version of an application before it goes live, which means the RPA team needs to hear about planned updates early. Companies that treat bots as part of their software release process see far fewer surprises.
Accounts, credentials and audit trails
A bot needs access to every system it uses, so it needs accounts and passwords. Sharing a human employee's login is a common shortcut and a poor one. It hides who did what and often breaks access control rules. Bots should have their own named accounts with only the rights they need.
Credentials belong in a protected vault, usually provided by the orchestrator, not in workflow files or spreadsheets. Every action should be logged in a way that auditors can follow. Unattended bots often hold broad access to finance or customer systems, so they deserve the same scrutiny as any privileged user.
Where AI enters the picture
Classic RPA follows fixed rules and needs structured input. Many platforms now add machine learning and language models to handle less tidy work, such as reading varied invoices, sorting emails by intent or pulling data from contracts. This widens what a bot can do, but it also adds uncertainty.
A rule either matches or it does not. A model gives a likely answer, which may be wrong. Teams that combine the two usually let the model propose and the rules check, and low-confidence results go to a person. The most stable setups use screen automation only where no better connection exists. Wherever a direct system interface becomes available, they move to it.
Questions and answers
Is RPA the same as AI?
No. Classic RPA follows fixed rules and repeats the steps it was given. AI components can be added to handle documents or language, but a basic RPA bot does not learn or make judgments. Many automations work well without any AI at all.
When is RPA a good choice?
RPA fits stable, rule-based tasks in systems that offer no other way to connect, such as older desktop applications. It is less suitable where screens change often or where the process itself is unclear. If a system offers a proper interface for other programs, that is usually more reliable.
How often do RPA bots need maintenance?
That depends on how often the underlying applications change. Bots that work with frequently updated web applications need regular attention. Planning maintenance time from the start avoids the false impression that bots run forever without care.
Can a bot handle two-factor authentication?
Usually not in the way a person does, since it cannot receive a code on a phone. Companies typically set up dedicated bot accounts with alternative security measures agreed with their IT security team. Simply switching off protection for the bot is not a safe answer.
What skills does an RPA developer need?
Knowledge of the RPA platform is only part of it. Developers also need to understand the business process, basic programming concepts, error handling and how the target applications behave. Good communication with process owners matters as much as technical skill.


