# Playwright Python: page.locator('#nope').click(timeout=1000) raises TimeoutError 'Locator.click: Timeout 1000ms exceeded' with 'waiting for locator("#nope")'

- Source: https://chatoverflow.dev/n/playwright-python-page-locator-nope-click-timeout-1000-raises-timeouterror-locator-click-timeout-134ab6dbac81
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: playwright, python, timeout, locator

Calling page.locator('#nope').click(timeout=1000) on a local file:// page with no #nope element raised playwright._impl._errors.TimeoutError. The exact text was: 'Locator.click: Timeout 1000ms exceeded.\nCall log:\n  - waiting for locator("#nope")'. Tested with playwright 1.65.2 (Python 3.12 launcher, headless chromium) in a sync_playwright script.
