---
title: "AgentSandbox.host"
description: "Browser testing at scale with Playwright and Selenium: setup in Python and Node.js, Docker images, Selenium Grid, parallel runs, sharding and flaky tests."
url: "https://www.agentsandbox.host/"
site: "AgentSandbox.host"
---

# AgentSandbox.host

> Browser testing at scale with Playwright and Selenium: setup in Python and Node.js, Docker images, Selenium Grid, parallel runs, sharding and flaky tests.

## Log
- [How to fix flaky browser tests in Playwright and Selenium](https://www.agentsandbox.host/p/fix-flaky-browser-tests/index.md): Fix flaky browser tests by first proving they are flaky (run them many times), then separating environment trouble from test bugs, then removing the cause, usually timing, shared state or overloaded machines. Retries and traces find flaky tests; auto-waiting, isolation and fewer workers fix them. (updated 2026-11-26)
- [Playwright CLI: every command and the test options that matter](https://www.agentsandbox.host/p/playwright-cli-commands/index.md): The Playwright CLI is the npx playwright command. Its main commands are test, show-report, show-trace, codegen (record a test), install and install-deps (browsers and system packages) and merge-reports; npx playwright test takes options for filters, workers, shards, retries, traces and debugging. (updated 2026-11-26)
- [Playwright async in Python: when to use it and how](https://www.agentsandbox.host/p/playwright-python-async/index.md): Use Playwright's async API in Python when your code already runs on asyncio. Import async_playwright from playwright.async_api, await every call, and start it with asyncio.run. For pytest, install pytest-playwright-asyncio and mark tests with the session loop scope. (updated 2026-11-26)
- [Playwright with Python: install it and write your first test](https://www.agentsandbox.host/p/playwright-python-tutorial/index.md): To start with Playwright in Python, install the pytest plugin with pip install pytest-playwright, download the browsers with playwright install, write a test function that takes the page fixture, and run pytest. Tests run headless in Chromium by default; --headed and --browser change that. (updated 2026-11-26)
- [Playwright testing with Node.js: install, first test, config](https://www.agentsandbox.host/p/playwright-testing-with-node/index.md): To start Playwright testing in Node.js, run npm init playwright@latest, which adds @playwright/test, a playwright.config.ts and an example test, then run npx playwright test. Tests use the page fixture, role-based locators and retrying assertions; npx playwright show-report opens the results. (updated 2026-11-26)
- [Run browser tests in parallel: workers on one machine, shards across many](https://www.agentsandbox.host/p/run-browser-tests-in-parallel/index.md): On one machine, run browser tests in parallel with Playwright Test's worker processes (by default half the logical CPU cores) or pytest-xdist. Across machines, split the suite with --shard=x/y, one shard per machine or sandbox, and set fullyParallel so shards get an even share. (updated 2026-11-26)
- [Run Playwright tests in Docker with the official image](https://www.agentsandbox.host/p/run-playwright-tests-in-docker/index.md): Run Playwright tests in Docker from the official image tagged with your exact Playwright version, such as mcr.microsoft.com/playwright:v1.65.1-noble, with --init and --ipc=host, then npm ci and npx playwright test inside it. The image has the browsers but not your Playwright package. (updated 2026-11-26)
- [Selenium Grid: what it is and how to run it in Docker](https://www.agentsandbox.host/p/selenium-grid-docker/index.md): Selenium Grid runs WebDriver tests on remote browsers by routing each session from one address to Nodes that host the browsers. In Docker, start selenium/standalone-chrome for one container, or a selenium/hub with selenium/node-* containers for a real Grid, each with 2 GB of shared memory. (updated 2026-11-26)
- [Testcontainers for browser tests: Selenium and Playwright in throwaway containers](https://www.agentsandbox.host/p/testcontainers-browser-tests/index.md): Testcontainers starts a browser in a throwaway Docker container from your test code and removes it afterwards. Its Selenium modules for Java, Python and Node.js hand you a WebDriver on a fresh browser; for Playwright, a generic container running the official browser server does the same. (updated 2026-11-26)

## Data
- [Playwright vs Selenium: a sourced comparison table](https://www.agentsandbox.host/p/playwright-vs-selenium/index.md): Playwright and Selenium are both Apache-2.0 browser automation projects. Playwright gives one API over pinned Chromium, Firefox and WebKit builds with auto-waiting and its own runner; Selenium implements W3C WebDriver in six languages and scales out with Selenium Grid. (updated 2026-11-26)

## About
- [About](https://www.agentsandbox.host/about/index.md)
- [Contact](https://www.agentsandbox.host/contact/index.md)
- [Privacy](https://www.agentsandbox.host/privacy/index.md)
- [Notes for AI assistants and crawlers](https://www.agentsandbox.host/ai/index.md)
