For new browser automation work commissioned from Chinese teams, the default stack in 2025 is Playwright, with Selenium retained mainly for estates already standardized on it or for legacy supplier portals that force an old browser driver. Buyers comparing proposals should not treat the two tools as interchangeable equivalents that differ only in name. They differ in how sessions are held, how failures are captured, how concurrent browsers are managed, and how much maintenance labor accumulates when a portal changes its markup. The decision flips on three quantities: the age and browser mix of the target systems, the number of concurrent sessions the operation needs, and how strict the audit logging requirement is for each recorded action. A vendor that quotes both stacks without naming which one fits those quantities is usually quoting the stack its own engineers happen to know, not the one the buyer needs.
How the two stacks behave inside one working session
Playwright controls Chromium, Firefox, and WebKit through a single driver protocol maintained by one open-source project. It keeps a browser context per session, which means cookies, local storage, and login state can be isolated between runs without closing the whole browser. Its auto-waiting model retries an action against a selector until the element becomes visible and actionable, which removes a large class of timing failures that older scripts solve with hard-coded sleep calls. Network interception, screenshots on failure, and tracing of the full session are built into the library rather than bolted on through a second package.
Selenium drives a browser through the WebDriver protocol, which is implemented per browser vendor and per language binding. It has the widest language coverage and the longest institutional history, so teams in enterprise IT often already know its API. The trade-off is that waits are explicit: a script must declare how long to wait and what condition to wait for, and a missing wait surfaces as a flaky run that passes once and fails the next time. Session state lives in the driver session, and isolation between accounts usually means starting a fresh driver rather than a fresh context inside one browser.
For a buyer watching a demo, both stacks can click the same buttons and submit the same forms. The visible difference appears after the demo, when a run fails at 02:00 on a production portal and someone has to reconstruct what the bot saw. Playwright’s built-in trace, screenshot, and network log make that reconstruction cheaper; Selenium requires the project to have added screenshot capture, page-source dumps, and structured event logging as separate engineering work.
What Chinese teams ship most often, and why
Chinese automation studios that take on cross-border portal work tend to open new projects on Playwright for three practical reasons. First, the library ships its own browser binaries, so a deployment does not depend on a system browser that a server administrator may update without notice. Second, the context model maps cleanly onto multi-account portal operations, where one host machine runs several supplier logins at once. Third, the TypeScript and Node.js bindings match the stack most younger engineers in the Chinese outsourcing market already use, which keeps staffing flexible after handover.
Selenium proposals still appear, and usually for defensible reasons. A buyer’s internal IT standard may require WebDriver-based tooling because existing RPA and test suites run on it. A target portal may be an old Internet Explorer or legacy Edge application that Playwright does not support. Or the vendor’s senior engineers have ten years of Selenium maintenance experience and can quote a lower price on a stack they know cold. None of these reasons is wrong; the mistake is accepting a Selenium quote for a modern portal when the buyer’s real requirement is fast session isolation and built-in failure evidence.
When a proposal names the stack only as “browser automation framework,” buyers should ask which one, in writing, and which language binding. The answer determines who can repair the script after the retainer lapses: a Playwright codebase is repairable by a broad pool of Node.js engineers, while a Selenium codebase written in an uncommon language binding narrows that pool considerably.
Maintenance cost: drivers, browsers, and selector breaks
The recurring cost of any browser bot is not the first build; it is repair after a target page changes. Both stacks depend on selectors, and selectors break the same way in either tool, but the surrounding maintenance burden differs. Playwright bundles browser versions with the release, so a library upgrade moves the browser at the same time and keeps the combination tested together. Selenium pairs a driver version with a browser version managed outside the project, and a browser update pushed by the hosting provider can break the driver until the project upgrades both sides together.
Selector maintenance itself should be treated as a documented asset in either stack. A healthy build ships a selector map that lists each target element, the selector used, a fallback selector, and a fixture page showing the element. When a portal redesigns a form, the engineer edits that map rather than searching through a long script. Without the map, repair time multiplies, because the first day of work is spent reverse-engineering what the script was aiming at. The repair pattern after a redesign should be exercised in staged conditions before production, as covered in sandbox testing for Chinese workflow bots before go-live, and buyers should check whether the proposal includes that map as a deliverable.
Driver and browser drift is the Selenium-specific maintenance line. Buyers should ask how often the driver and browser are version-pinned, who applies security updates, and what happens when the target portal drops support for an old browser. A Selenium estate that cannot move forward on the browser becomes a compatibility project rather than an automation project.
Concurrency, sessions, and how logs survive a crash
Concurrency planning starts with the number of simultaneous portal sessions the operation needs, not the number of total records per day. Ten accounts each processed once per hour can run sequentially on one machine; fifty accounts each processed every fifteen minutes need a queue that paces sessions and retries failures without piling up browsers. Playwright’s context model keeps multiple sessions inside one browser process, which lowers memory per session compared with a fresh Selenium driver per account, although real numbers depend on the portal’s page weight. A buyer should ask the vendor to show a concurrency calculation: sessions per hour, average session duration, peak queue depth, and how many browser processes the planned machine can hold.
Session and credential storage belongs with the buyer regardless of stack. Each portal login should be held in a secrets store the buyer controls, with the bot pulling credentials at run time rather than reading them from a committed script. Shared accounts that several bots use invite lockouts and muddy attribution; where a portal allows it, one bot identity per operation is cleaner for later audit review. The credential and handover mechanics are covered in runbooks and credentials handover with Chinese automation vendors, which applies equally to browser stacks.
The audit logging design deserves its own checkpoint. For every run, the log should record which account acted, which target portal, the step sequence, the outcome of each step, timestamp in both UTC and the buyer’s local zone, and a reference to the failure evidence such as a screenshot or trace file. Selenium projects often leave this to a custom wrapper; Playwright projects start closer to a usable trace out of the box. Buyers should ask to inspect a real failed-run log from the vendor’s past work, not a sample written for the pitch, and check whether the log answers who, what, when, and what went wrong without reconstructing it from chat messages.
When Selenium still earns its place in a portal estate
Selenium is the right call in three situations even though it is not the fashionable choice. The first is an estate where ten or twenty existing test and automation scripts already run on WebDriver, and the new bot has to share accounts, session helpers, and internal libraries with them. Rewriting that estate onto Playwright is a separate migration project with its own testing risk, and forcing it on one new bot fragments the tools two ways.
The second is a target application that only works on an old browser the buyer must support, such as a legacy supplier portal tied to an internal Windows build. Playwright’s modern browser support does not help there; the bot has to match the browser the portal accepts. The third is language coverage: if the buyer’s in-house maintenance team works in a language where Selenium’s binding is mature and Playwright’s is thin, repair after handover favors Selenium even if the vendor could build faster in another language.
None of these situations justifies accepting Selenium for a modern, standards-compliant web app merely because the vendor proposed it. The deciding test is whether the existing estate, the target browser requirement, or the buyer’s own maintenance language gives a concrete reason; a preference stated as “the team is more familiar” is a staffing argument, not a technical one, and it should be priced as such in the repair phase.
The handover questions that expose which stack a vendor actually knows
A buyer can probe real competence without reading much code. Ask the vendor to show a past repository: how releases are tagged, how environment configuration is separated from the script, and how a failed run’s evidence is filed. Ask which wait strategies the scripts use and whether any fixed sleep calls remain in production code. Ask how browser binaries are installed on the target server and whether versions are pinned in the repository or installed ad hoc during deployment.
Ask also about failure handling: what triggers a retry, how many retries are allowed, what marks a session as failed rather than retried, and where the exception queue feeds so a human can take over. Retry and alert design for China-built automation is the same pattern across stacks, and it is laid out in retries and alerts in China-built workflow bots; a vendor who cannot describe a retry policy in writing has not built a reliable system in either framework.
The final checkpoint is a dry handover on staging: someone other than the original engineer deploys the scripts from the repository to a clean machine following the runbook, runs two sample sessions, and reads the resulting logs. If that dry run fails, the project is not ready regardless of which stack was chosen. The stack question is subordinate to that one test: a well-delivered Selenium bot with documented logs beats an undocumented Playwright demo every time, and a buyer who screens for delivery discipline will find the stack choice falls into place with it.
Leave a Reply