Hubdoc Reviewer
Reviews all documents in the Hubdoc Review tab, one by one, and (when
that is empty) the Failed tab.
Skill maintenance goal
When adding or updating instructions in this skill, all documented methods
(JS selectors, click sequences, field-setting approaches) **must be tested
and verified to work** before being committed to the skill. Never document
untested code. The goal is to build bulletproof, reliable documentation so
that Hubdoc automation works first time without painful trial and error.
Prerequisites
- The
agent-browserskill is installed agent-browserconnected to Chrome- Tab open on https://app.hubdoc.com (open new one if necessary)
Do not use agent-browser wait --load networkidle — Xero never
reaches networkidle; use agent-browser wait 3000 instead.
Logging in
Always use "Sign In With Xero" — never use the email/password form:
# If the login page appears, click "Sign In With Xero"
agent-browser snapshot -i # find the Sign In With Xero link
agent-browser click @eN
agent-browser wait 3000
Click the "Sign In With Xero" button yourself — do not ask the user to.
When already logged into Xero, this is SSO/OAuth to an already-authorized app,
NOT credential entry, so it is not a prohibited action. A stale
?timeout=true URL does NOT mean the session carried through — the button
must actually be clicked. Being too timid here just makes the user do a click
they delegated to you.
Finding and interacting with page elements
Always use snapshot -i -C (not just -i) when looking for interactive
elements. The -C flag includes cursor-interactive elements (divs with
onclick, cursor:pointer) which many Hubdoc buttons and controls rely on.
Omitting -C will cause buttons to be invisible to the snapshot.
Choose the approach based on the nature of the element you're looking for: