Start with the earliest point where the observed state differs from the expected state. A bot can open a sign-in page successfully, wait for a report it cannot see, and then produce an empty export. The log may draw your attention to the export, but the first unexpected result is the redirect.
| First unexpected observation | Check before changing the workflow | Repair to test |
|---|---|---|
| A sign-in or access page appears | Effective Profile, authorized session, account role, and destination | Restore approved access or route to the operator. Test the report view again. |
| The intended page opens, but no element matches | Tab, frame, rendered record, and whether the selector matches in that state | Fix the browsing context, wait for the relevant state, or recapture the selector. |
| More than one element matches | Whether hidden or repeated rows share the same label | Scope selection to the intended record or component and verify one match. |
| The button is present but the action fails | Busy state, disabled control, modal overlay, or an element replaced on re-render | Wait for the correct interaction state and locate the element again if needed. |
| The run finishes but the expected file is missing or stale | Whether the output branch ran and which path it used | Verify the branch condition, output path, and artifact from this run. |
Check the selector on the page that failed, using the same test role and record. A selector captured against an administrator’s dashboard can fail against a viewer’s version. A selector stored before a route change can also point to an element in a tab or frame the workflow no longer controls. Confirm the address, relevant frame, report heading, and record key before touching the selector.
If the markup changed, recapture the element and compare the new selector with the saved one. Keep stable attributes inside the correct component and retest after a reload and against a second fixture record. For pages your team owns, ask the app owner to preserve an explicit attribute such as data-testid="inventory-ready". Avoid relying on a generated class or a row's position after sorting. Microsoft guidance on runtime selector failures
A stale element and an intercepted click need different repairs. Relocate a control after the page replaces it. If an overlay covers it, identify the overlay and handle its normal dismissal or wait for it to clear. If the tool sees two matches, narrow the target instead of letting it use the first row. Selenium guide to element and interaction errors
Choose a condition that depends on the work you need to do. For a read, wait for the requested record to load, then check the field value. For a click, make sure the intended target can receive the interaction and is enabled. A control's presence in the DOM tells you it exists. You still need to verify visibility or click readiness when the action requires it. Playwright actionability checks
Put separate limits on navigation and on the expected page state. Increase a timeout only after this distinction is clear. If the page sometimes serves a legitimate report more slowly, measure the time until that report's marker appears and choose a practical budget. A wrong route, a permanent overlay, or an empty record cannot be fixed by allowing more time.
Retry a transient failure when you can repeat the operation safely. Use a small retry limit and an increasing delay for an approved read that fails because of a temporary network or service problem. A malformed selector, missing permission, or invalid record needs correction or review before another run. AWS guidance on backoff and idempotency
The boundary changes as soon as the workflow may have committed a write. A form submission can succeed on the server before the browser sees its confirmation. Check the destination for the expected record or transaction before retrying. If the destination can't prove whether the write occurred, stop and pass the case to the owner. Preserve any supported deduplication key across attempts so the destination can recognize the same operation. Treat local exports as writes too. Give test outputs distinct filenames and verify the destination before rerunning a writer.
Nstbrowser's RPA feature modules document Log and its step details, Normal Task for immediate execution, and Task Processing settings for exceptions. Work from a reviewable copy of your workflow. If you need a starting workflow, see how to choose and customize a browser RPA template.
Use one authorized staging Profile and one test record. An inventory detail page your team owns is enough. The workflow reads browser data and writes at most a local test workbook. The selectors and record values below are illustrative.
Repeat the case that failed and add a deliberate negative case. An illustrative inventory run might expect one row for QA-1042 with status IN_STOCK. First check the log and the newly created workbook together. Then test an expired sign-in or a missing record and confirm that the run leaves no new workbook and records the point where it stopped.
Record the approved Profile, workflow revision, input, expected output, and outcome. Restore the scheduled task after both cases pass. Check its first scheduled run for the same destination and valid data. If the problem returns only on schedule, compare the selected Profile, session, environment, and input values with the immediate run before changing selectors again.
Q: Why does a selector work manually but fail in an RPA task?
The run may use another account, tab, frame, viewport, or page state. Compare the failing state with the captured selector and verify that it identifies the correct record and visible field.
Q: Should I increase the wait time when a step times out?
Only if the page reaches the expected state within a longer, reasonable budget. Validate the page and record first. Choose a condition that reflects the next action's actual readiness.
Q: Can I retry an RPA form submission after a timeout?
Check for the intended record or confirmation first. Retry only if the destination has not committed the action or provides supported deduplication. Escalate when the outcome is uncertain.
Q: Why did the RPA workflow finish without producing an Excel file?
Confirm that the success branch reached the writer. Then check the configured path, file name, selected columns, and run details. Inspect the current run’s actual output before marking the task successful.