Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does playwright support waiting for the element invisible? #5822

Closed
SansLang opened this issue Mar 15, 2021 · 4 comments
Closed

Does playwright support waiting for the element invisible? #5822

SansLang opened this issue Mar 15, 2021 · 4 comments

Comments

@SansLang
Copy link

SansLang commented Mar 15, 2021

For example, the same as selenium, WebDriverWait(driver, timeout).until_not(EC.visibility_of_element_located((By.XPATH, locator)))

@pavelfeldman
Copy link
Member

Sure, see https://playwright.dev/docs/api/class-page/#pagewaitforselectorselector-options. Pass hidden or detached state into it.

@SansLang SansLang changed the title Does playwright support waiting for the element unvisiable? Does playwright support waiting for the element invisible? Mar 15, 2021
@SansLang
Copy link
Author

okay

@yb172
Copy link

yb172 commented Mar 30, 2022

Looks like this has been updated to https://playwright.dev/docs/api/class-locator#locator-wait-for

@TomasHubelbauer
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants