The vendor’s API handles lookups and most of the updates. The last step, the one that actually changes the record, only exists as a button in its Windows client. If that’s your task, you can automate everything except one click, and the question is what to do about it.

Use the API for everything it can reach, and automate the screen only for that leftover step. That’s a much smaller job than replacing the integration, and it’s the job OpenAdapt is built for. The API can still help there. It can’t make the change, but it can often read the result, which gives you a way to check that the save on screen really landed.

How the options compare

OptionWho owns itWhat checks the saveAfter a timeoutSwitch when
Supported APIYour developers call it, and the vendor keeps it stableThe response, plus your own read of the recordRead the record before you send againIt can’t reach a step. Move only that step.
PlaywrightA developerThe script’s assertionsBefore the click, it fails with nothing clicked. After the click, your code has to check the record.Other people depend on it, or the task leaves the browser
SeleniumA developer or test teamThe test’s assertions, plus any record check you addThe browser error can’t say whether the save landedOther people depend on it and nothing reads the record, or the task leaves the browser
AutoHotkeyThe person who wrote the macroThat person, watching it runThat person sees it and fixes it by handCoworkers copy it, it runs unattended, or a bad save is costly
OpenAdapt workflowA named owner, who reviews each changeChecks what landed via API or database when available, or on the UI (settled screen, reopened view, or second tab)It stops and asks a person to check the record. It doesn’t retry on its own.A supported API starts covering the step

Tool behavior in this post comes from each project’s documentation, checked on 2026-10-09.

When an API is the better choice

When a supported API exists, it’s the better choice almost every time. A direct call skips the fragile parts of screen automation, such as window focus and finding the right field on a page that moved. You can test a request more easily than a click, and the service owner can redesign the screen without breaking your integration. OpenAdapt’s fit checks for a new workflow start with the same rule: if a supported API exposes the operation, use it.

An API call still needs a check when the write matters. RFC 9110 defines a 2xx status code to mean the server received and accepted the request. The server can return 200 after writing to the wrong record. A later step in the vendor’s system can also reject work that the first service accepted.

Move only the step the API can’t reach

An API often covers most of a task and stops short of one step. A product can expose customer lookup through an API and keep the final update in its Windows client. A payer portal may have an internal API that customers aren’t allowed to call. An old system may support only the desktop app its vendor ships, and Citrix can put that app behind one more boundary your team doesn’t control.

Keep API calls for search, data preparation, routing, and every supported write. Automate the screen only for the operation that has no supported machine interface. Often that’s the last step, where someone enters approved information and checks that it saved. A task with 9 API steps and 1 screen step is easier to run than one with 10 screen steps, because a layout change can’t break an API call that never opens the page.

Let a read-only API check what the screen wrote

OpenAdapt separates performing the action from checking that it took hold. When a read-only REST or FHIR API or database view (or an exported file) is available, OpenAdapt queries it first as the strongest check. Many portals and desktop apps offer no backend access, and some update cells in place or run non-idempotent wizards where reloading would break the session or resubmit a form. On any UI, OpenAdapt checks the settled target region on screen for the expected state with no validation error, and upgrades to reopening the view or checking a separate read-only tab whenever the app supports it. Every receipt labels how the check ran (same_screen, reopened, separate_session, or system_of_record), and OpenAdapt’s limits page describes what each check covers.

OpenAdapt doesn’t guess what to verify. A person names the target fields or expected state for each workflow. Only runs confirmed against an independent read path earn a system_of_record or separate_session receipt, while in-place UI checks are labeled same_screen so reviewers can see when a confirmation banner could still hide a server-side rejection.

A timeout after Save is the hardest case. If the app accepted the click and the reply never arrived, a second click could save the entry twice. So OpenAdapt doesn’t click again. It stops and asks a person to check the record, and nothing is retried until they do. It stops even when the save went through, because nothing confirmed it. A read-only API gives that person a quick way to see what the record holds.

If you already have a script

A script is a fine answer while the person who wrote it runs it and watches it. Each of these tools has its own post on where that stops being true.

Playwright is the one OpenAdapt builds on. Its browser recorder runs on a Playwright page and keeps the same kind of target identity, role and accessible name, that Playwright’s locator guide recommends. Keep a Playwright script while a developer owns it and its assertions prove the whole result (OpenAdapt vs. Playwright).

Selenium leaves everything around the browser to your code, which is fine in a test suite. A job that writes business records also needs a rule for the click on Save that times out, since the browser error can’t tell you whether the save landed (OpenAdapt vs. Selenium).

AutoHotkey’s Send goes to whichever window is active, so focus decides where the input lands. A careful author can use WinWait and ControlSend to make a macro sturdy. The question is who’s watching once coworkers rely on it (OpenAdapt vs. AutoHotkey).

If the task leaves the browser for a desktop app, record each part as its own automation. Two apps, one checked fact shows how the second part starts only with a value the first part saved and checked.

When to record a workflow instead

Record the step in OpenAdapt when all of these are true:

  1. No supported API can make the change.
  2. Other people depend on the step, or it runs without the person who wrote the script.
  3. A wrong save costs more than the time the automation saves.
  4. You can name the observable state that proves the change took hold: a read-only API or database view (or exported file) when available, a reopened view or separate read-only tab when the app allows it, or the settled target fields on screen for in-place edits and non-idempotent flows.

A person or an agent shows the task while OpenAdapt records it, and OpenAdapt builds the automation from one or more recordings. A normal run makes no model calls. When a screen changes, OpenAdapt finds the same field again from what it recorded and logs the change for review, or it stops. If the vendor later ships an API that covers the step, move the step to the API.

Try the record check on your computer

Run the quickstart in one command with uv:

uvx --python 3.12 openadapt@latest quickstart

uvx downloads Python 3.12 if you don’t already have it, then replays a recorded task in MockMed, a synthetic clinic app that ships with OpenAdapt. It saves a record through the app’s screens and confirms the saved value through a read-only API that the app itself never calls. When your own application exposes a read-only API or database view (or file export), OpenAdapt uses that first; when it only has a UI, OpenAdapt checks the settled screen state directly and uses a reopened view or separate read-only tab when the app supports one.

To see the check catch a bad save, run uvx --python 3.12 openadapt@latest quickstart --break-it (what it shows). To record a task in your own web app, follow the first-workflow guide. If you’re comparing RPA suites, read the posts on UiPath and Power Automate.

FAQ

Should I use an API or screen automation?

Use the API whenever a supported one can make the change. Automate the screen only for the step no supported API can reach, and keep every other step on the API.

Does a 200 OK mean the record was saved correctly?

No. RFC 9110 defines 2xx as the server receiving and accepting the request. The server can accept a write to the wrong record, and a later step can still reject it, so read the record back when the write matters.

Can a read-only API help with screen automation?

Yes. OpenAdapt can make the change on screen and confirm the stored value through a read-only REST or FHIR API, which is the strongest check. When an app has no API or database view (or file export), OpenAdapt checks observable UI evidence on the settled screen, or re-reads a reopened view or separate read-only tab when the app supports one, and records which check ran in the receipt.

What happens if a save times out?

OpenAdapt stops and asks a person to check the record instead of clicking Save again, because the first save may have gone through. Nothing is retried until a person checks.