Rayrun
← Back to Discord Forum

deprecated method

Hi there, I am wondering what is the alternative method for WaitForNavigationAsync since on playwright official documentation it's mentioned DEPRECATED so how soon it will be removed.

This thread is trying to answer question "What is the alternative method for WaitForNavigationAsync in Playwright since it's deprecated?"

1 reply
dirvinautomation_16636

The documentation says that WaitForURLAsync() is the recommended alternative. Does that not cover your use-case? If it doesn't, then I would look for a different approach as opposed to a 1-to-1 replacement.

Speaking from experience, I replaced waitForNavigation (node.js equivalent) with web-first assertions, and I've found them to be much better than waitForURL or waitForNavigation ever were. So much more resilient in my tests.

Good luck! Cheers 🍻

Related Discord Threads

TwitterGitHubLinkedIn
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.