This thread is trying to answer question "How to wait until a specific locator is visible after uploading a video on Twitter?"
use assertions: https://playwright.dev/docs/api/class-locatorassertions
await expect(page.locator("div").filter(has_text=re.compile(r"^Uploaded (100%)$"))).toBeVisible()
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].