Skip to content

[Bug]: #38727

@mengbinhao

Description

@mengbinhao

Version

1.57.0

Steps to reproduce

I use below code, the second waitForSelector did not work.

await page.waitForSelector('#progressBar', { state: 'hidden' }); //work

await page1.locator('#input').fill('1234567890');

await page.getByRole('link', { name: 'click me' }).click(); //after clicking progressBarshow again

await page.waitForSelector('#progressBar', { state: 'hidden' }); //this time waitForSelector did not wait progressBar disappear

await page.getByRole('anotherButton', { name: 'click me' }).click()

Expected behavior

same code, for waiting same selector must execute with same result

Actual behavior

waitForSelector did not wait at second time

Additional context

No response

Environment

System:
  OS: Windows 11 Enterprise 23H2
  CPU: Intel Core(TM) Ultra7 265U
Binaries:
  Node: V24.10.0
  npm: 11.6.1
npmPackages:
  @playwright/test: ^1.57.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions