Rayrun
← Back to Discord Forum

Python: How do I go to the next Tab opened by the website?

aadarshlalchandaniposted in #help-playwright
Open in Discord
aadarshlalchandani
aadarshlalchandani

I'm using Playwright Async Python-3.7. The website that I'm trying to test has tags that open new web pages. I'm able to open those web pages but while running all_pages = page.context.pages it gives me only the first page that was opened using await page.goto. Please help me with this issue. Thanks!

This thread is trying to answer question "How can I access all the tabs/pages opened by a website using Playwright Async in Python?"

4 replies
aadarshlalchandani
aadarshlalchandani

@debbieobrien

Did you try use the test generator to see if that helps?

aadarshlalchandani
aadarshlalchandani

No, I'll try that. Thanks!

aadarshlalchandani
aadarshlalchandani
@debbieobrien: It worked.

It worked.

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 [email protected].