← Back to Discord Forum

Unable to capture success message which pops up for around 2 seconds.

goutam_83302posted in #help-playwright
Open in Discord

playwright is failing to capture the succes message. I'm using antd message component. It pops up in the screen whenever api is success. It will not capture it once, but in another chance it may capture it. It's tottaly failing randomly. I will attach report screenshot for reference. I'm tottaly clue less. Please someone help me here.


This thread is trying to answer question "How can I consistently capture a short-lived success message using Playwright?"

3 replies

i think you can do this in promise.all struct.


How will that work? can you give example?

@goutam_83302 in this case, I'll would use a waitForSelector() before expecting it to be visible

Related Discord Threads

AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

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 luc@ray.run.