Migrate from Selenium
Selenium suites are the oldest and usually the heaviest: page object classes, WebDriverWait with expected conditions, driver management, Grid infrastructure, and locator strategies spread across hundreds of files in Java, Python, or C#. Most of that code exists to work around one problem - scripted automation can’t see the page.
TesterArmy’s agent can. Tests are natural-language steps executed with vision, so there are no locators, waits, or page objects to maintain, and no browser infrastructure to run. The fastest migration path is letting your coding agent (Claude Code, Cursor, Codex) read your Selenium suite and convert it with the TesterArmy CLI.
How concepts map
What translates and what doesn’t
The page object pattern actually makes migration easier: method names like loginPage.submitValidCredentials() or cartPage.removeFirstItem() already describe user intent, which is exactly what TesterArmy steps are.
Things to leave behind:
- Driver and Grid management - capabilities, driver factories, Dockerized Grids. There is no equivalent because none of it is needed.
- Cross-browser matrices - the TesterArmy agent tests behavior, not browser quirks. Run locally with
--browser firefoxif you still need a second engine. - Database setup/teardown hooks - seed staging ahead of runs or use a preparation test.
Prerequisites
Get an API key from the dashboard. For non-interactive agent sessions, set TESTERARMY_API_KEY instead.
The migration prompt
Paste this into your coding agent in the repository that contains your Selenium tests. It works for Java, Python, C#, Ruby, and JavaScript bindings:
After the migration
- Review the migrated tests in the dashboard - steps should read like manual test cases, because that’s what they are now.
- Add credentials for the logins your auth helpers handled.
- Replace the Selenium CI job (and the Grid behind it) with
ta tests run --group <groupId>or a group webhook. - Decommission driver binaries, Grid containers, and the page object layer once TesterArmy runs are green.
