Maybe there's something else about this pattern that we can use as a signal. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. SansLang commented Mar 15, 2021. okay. With Selenium, you might need to wait for the elements before interacting with them explicitly. Using Playwright for Python, how do I select (or find) an element? They can still re-publish the post if they are not suspended. If sergeyt is not suspended, they can still re-publish their posts from their dashboard. E.g: Desired behavior: selectOption waits until badlabel can be found, eventually throwing a TimeoutError. await page.locator('button').click(); Selecting visible elements There are two ways of selecting only visible elements with Playwright: :visible pseudo-class in CSS selectors // Ready to take a screenshot, according to the page itself. It's a jamstack app static html that starts out with an empty