The browser could not connect to the target URL. The server is not running, the port is blocked, or the URL is incorrect.
// playwright.config.ts
export default defineConfig({
webServer: {
command: 'npm run dev',
port: 3000,
reuseExistingServer: !process.env.CI,
},
});Playwright will automatically start your dev server before running tests and shut it down after.
// wait-for-server.sh for i in $(seq 1 30); do curl -s http://localhost:3000/health && exit 0 sleep 1 done exit 1
Wait for the server to be ready before running tests, with a 30-second timeout.
ObserveOne monitors your application uptime 24/7, alerting you immediately when servers become unreachable.
Start Monitoring FreeNavigation to the target URL did not complete within the timeout period. The page either failed to respond or took too long to reach the 'load' event.
The browser page crashed during execution. This is typically caused by out-of-memory conditions or browser bugs.
The default action timeout (30 seconds) was exceeded before the operation could complete. This commonly occurs during navigation, element waits, or network-dependent operations.
Playwright waited for an element matching the given selector but it did not appear within the timeout. The element may not exist, may be hidden, or may appear under a different selector.
A locator matched more than one element, but the action requires exactly one. Playwright's strict mode (enabled by default) prevents ambiguous interactions.