This thread is trying to answer question "How can I retrieve the URL of a page after a redirect in Playwright when page.url() is returning the original page's URL?"
https://playwright.dev/docs/navigations#navigation-events
Not sure if I'm reading that right but it sounds like the Navigation occurs first, which will change the page url, but page.url() only returns the new page url in the Loading stage
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].