Browser automation for portal data entry takes records prepared in the buyer’s own systems and types them into supplier portals that have no API or no permitted API for the operation. The reliable build runs a fixed sequence: open a session, load the record, map fields one by one, validate what the portal shows before confirmation, submit, and record the outcome with evidence. The unreliable version skips the validation and confirmation checks and submits fields straight through, which saves minutes per record during the demo and produces wrong entries in production that must be corrected manually. This article walks through that sequence in order, with the checkpoints and intermediate numbers a buyer should expect from a Chinese build team, and explains where a headless browser does and does not belong in the design.
What a portal data-entry bot does step by step
Each entry follows the same loop. The queue takes the next pending record from the source list, which may be a spreadsheet, an internal database, or a feed from another system. The bot opens the target portal under the assigned account, confirms the session is logged in and not showing an expiry notice, and navigates to the entry form. It fills each mapped field, pauses for the portal’s own validation messages, and reads back the rendered values to compare against the source record. Only after the read-back matches does it click the confirmation control, and only after the portal returns a success state does it mark the record entered and save a screenshot or reference number.
Intermediate numbers matter for planning. A simple form with eight fields and one attachment takes roughly 60 to 90 seconds per entry in a paced session; a form with dependent dropdowns, date pickers, and multi-line remarks takes 2 to 3 minutes. A queue processing forty records per portal per day at two minutes each needs about 80 minutes of active session time, plus login and navigation overhead, which fits one worker during business hours. One hundred and twenty records per day at the same duration pushes past a single worker’s safe capacity and calls for pacing across a longer window or a second worker, rather than tighter concurrency against the portal.
The loop closes with an audit record: source record identifier, target portal, account used, timestamp, outcome, any portal message, and a link to the evidence. Without that record, a bad entry later has no provenance: nobody can tell whether the source data was wrong, the mapping was wrong, or the portal rejected part of the entry. The audit design for China-built browser bots belongs in the broader governance file, as described in governance and change control for automation bots; entry bots in particular depend on it because their actions are write-backs that cannot be undone by re-reading a page.
Planning the entry task list before the build starts
The planning stage converts vague “enter the data into the portals” into a field-level specification. For each portal, the buyer lists every field the bot must fill, the source column or system field it comes from, the format the portal expects (date layout, currency, code list, required attachment type), and which fields are mandatory. It also lists fields the bot must not touch: read-only reference numbers, portal-generated IDs, internal notes staff maintain manually. A field list that separates fill-from-source from leave-alone prevents the bot from overwriting values a person owns.
Record states should be defined too. A record can be pending, in progress, entered, confirmed by the portal, failed validation, or blocked for review. The queue transitions records between these states, and a restart after an outage resumes from the state rather than repeating an entry that may already have posted. Duplicate suppression is part of this design: the bot checks whether the record already exists in the portal before entering it, so a retried run does not create two copies of the same submission.
Volume and cadence are planned next. How many records per portal per day, whether entries cluster around a deadline, and whether the portal allows bulk uploads that the bot could prepare instead of typing one form at a time. Where a portal provides an approved bulk import template, generating the file and uploading it through the browser is often faster and more reliable than form-by-form entry; the build should choose the path the portal itself supports, not default to typing. Internal preparation of those batches follows the same source-to-target field mapping discipline used in document processing elsewhere in the automation estate, so the source schema should be clean before the queue starts.
Session, credential, and headless browser setup
Each portal account is held in the buyer’s name, with credentials pulled from a secrets store at run time rather than written into the script. Sessions are opened per account and closed cleanly at the end of the batch; cookies and local storage are not reused across accounts, which keeps one login state from leaking into another. Where a portal session expires mid-batch, the bot detects the expiry state, stops that account’s queue, and alerts for reauthorization rather than attempting to bypass the prompt.
A headless browser runs without a visible window and suits batch entry where nobody watches the screen. It lowers memory and CPU per session compared with a headed run, and it fits unattended overnight or early-morning batches. The trade-off is that failure diagnosis is harder without a visible session, so a headless build must compensate with screenshots on every major step, a saved trace or page state on failure, and a replay capability that can reopen the same account on a headed browser for review. Buyers should ask whether the deployed run is headless or headed, and what evidence survives when a headless session fails.
Some portals behave differently under headless mode: fonts render narrower, some controls do not receive focus the same way, and certain client-side checks may behave inconsistently. A staging test should confirm the target portal works in headless before production runs there; if it does not, a headed session on a managed machine or virtual display is the compliant fallback. Where a portal relies on an old Windows client rather than a web form, the deployment may fall outside browser automation entirely; the boundary is discussed in when desktop RPA beats browser automation, and the headless decision usually follows whichever hosting route the target system supports.
Validation steps that keep entries from posting bad records
Validation happens in layers, and each layer catches a different kind of error. Source validation checks the record before submission: required fields are present, dates parse, amounts are within a plausible range, attachment files exist and match the expected type. Portal-side validation reads the messages the form returns after each field or after the form loads: an error under a field, a required-mark warning, or a dropdown that did not populate. Read-back validation compares the rendered form values against the source record before the confirmation click.
Confirmation handling is where entry bots earn their keep. The bot should not treat the confirmation click as success; it waits for the portal’s explicit success state, such as a submitted status, a generated reference number, or a confirmation page. If the portal returns an error after submission, the record moves to the failed state with the portal message attached, and the bot does not retry the submission automatically until the failure reason is known. Repeated automatic posting after an ambiguous response risks duplicate entries, which are harder to fix than a held batch.
Edge cases deserve explicit handling: missing optional fields that still allow submission, attachments too large for the portal, codes that do not match the portal’s list, and records that belong to a different portal than the queue assumed. Each edge case should have a defined state and a review route, not a generic “skip and continue” that leaves a gap in the batch report. The buyer should see a sample failure record for each edge case during acceptance, not just the happy-path success screenshot.
Exception paths when a field or screen does not match
When a selector breaks or a screen layout changes, the bot stops the affected flow rather than guessing which control to use. It captures the page state, logs the step that failed, moves the record to the exception queue, and continues with the next record or closes the session according to the queue design. The exception list carries enough context for a reviewer to see what the bot saw, and for the repair engineer to locate the selector that needs updating.
Exceptions split into two classes. Transient issues, such as a slow page load or a temporary portal error, get a bounded retry with a short backoff; if the retry fails, the record escalates. Structural issues, such as a redesigned form or a changed field layout, do not retry at all; they wait for a script repair. Mixing the two classes causes either hammering a broken page or retrying a structural change until the batch stalls. The retry and alert pattern for China-built automation, including the distinction between transient and structural failures, is covered in retries and alerts in China-built workflow bots.
Reviewers on the buyer’s side work the exception queue: read the record and evidence, decide whether to correct the source data, re-enter manually, or request a script fix. The bot’s job is to surface exceptions cleanly with context, not to make judgment calls about ambiguous entries. Sensitive or high-value entries, such as legal invoices or contract submissions, should carry a human approval step before the bot posts, which is configured in the flow design rather than added after a mistake.
Acceptance walkthrough with sample batches
Acceptance runs on a staging portal or test account with real-format records, not synthetic happy-path data. The buyer prepares a sample batch covering normal entries, each known edge case, and a few deliberately malformed records that should be held for review. The vendor runs the batch, and the buyer compares entered records against source records field by field, checks the audit evidence per entry, and verifies that malformed records landed in the exception queue rather than posting. Accuracy thresholds for required fields and an accepted exception rate are agreed in writing before the test.
The walkthrough should include a restart test: stop the queue mid-batch, restart the machine or worker, and confirm pending records resume without duplicates and already-entered records are not re-submitted. It should also include a read-back spot check after go-live on the first production batch, comparing a sample of entries against the source. A bot that passes these checks is ready for steady operation; one that passes only the smooth demo batch is not.
After go-live, the operation reviews the daily report: entered count, failed count, exception reasons, and repair turnaround. The maintenance retainer covers selector repairs when the portal changes, and the buyer should know the response window for a broken production entry flow. Data-entry automation pays off when the batch is consistent and the exceptions are visible; it fails silently when the bot posts what it can and leaves the gaps to be discovered in a later audit.
Leave a Reply