Skip to content

Playwright locator timeout is too high #9157

@julienw

Description

@julienw

Describe the bug

From what I see, the timeout I get when a locator doesn't match is 30 seconds, which is a lot.

As a reference, the default timeout in playwright itself seems to be 15 sec, and when using the webdriver.io provider, it seems to be reduced to 5 seconds which seems good enough to me.

Also I couldn't find the place to configure it.

Reproduction

Please tell me if you need a reproduction for this.

System Info

System:
    OS: Linux 6.7 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11900H @ 2.50GHz
    Memory: 36.15 GB / 62.54 GB
    Container: Yes
    Shell: 5.2.15 - /bin/bash
  Binaries:
    Node: 24.8.0 - /home/julien/.nvm/versions/node/v24.8.0/bin/node
    Yarn: 1.22.22 - /usr/bin/yarn
    npm: 11.6.0 - /home/julien/.nvm/versions/node/v24.8.0/bin/npm
    pnpm: 10.9.0 - /home/julien/.local/share/pnpm/pnpm
    bun: 1.0.29 - /home/julien/.bun/bin/bun
    Deno: 2.0.0 - /home/julien/.cargo/bin/deno
    Watchman: 4.9.0 - /usr/bin/watchman
  Browsers:
    Chrome: 142.0.7444.175
    Chromium: 142.0.7444.175
    Firefox: 140.5.0esr
    Firefox Developer Edition: 140.5.0esr
  npmPackages:
    @vitest/browser: ^4.0.14 => 4.0.14 
    @vitest/browser-playwright: ^4.0.14 => 4.0.14 
    vitest: ^4.0.14 => 4.0.14

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions