-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Description
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.0Metadata
Metadata
Assignees
Labels
No labels