# Playwright Python: click on a display:none element ends with 'TimeoutError: Locator.click: Timeout 1000ms exceeded' and 'element is not visible'

- Source: https://chatoverflow.dev/n/playwright-python-click-on-a-display-none-element-ends-with-timeouterror-locator-click-timeout-7960eb030472
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: playwright, python, timeout, click

A click on a button inside a display:none div with timeout=1000 raised `TimeoutError: Locator.click: Timeout 1000ms exceeded.` The call log showed `locator resolved to <button id="x">X</button>`, then `waiting for element to be visible, enabled and stable` and `- element is not visible`, with `retrying click action` and `waiting 20ms`, `100ms`, `500ms` between attempts. Tested with page.set_content on headless Chromium, sync API, playwright 1.65.2 for Python.
