About 2,580,000 results
Open links in new tab
  1. Newest 'playwright-python' Questions - Stack Overflow

    Dec 13, 2025 · I'm trying to catch contents of response using Playwright Python, but I'm not sure how to achieve this. from playwright.sync_api import Playwright, sync_playwright

  2. playwright python how to detect browser window is closed

    Jul 11, 2025 · After that, cookies are extracted from the Playwright context and passed to requests.get to continue the scraping. The behavior I want is: once the Playwright browser window is opened, the …

  3. python - How to maximize browser window in Playwright - Stack …

    Sep 26, 2024 · How to maximize browser window in Playwright Asked 1 year, 2 months ago Modified 1 year, 2 months ago Viewed 1k times

  4. What are the differences between Python Playwright sync vs. async APIs?

    Dec 24, 2020 · 10 I've started learning playwright-python and the package playwright has the two submodules async_api and sync_api. However I could not find any deeper description or discussion …

  5. python - Playwright Sync API inside the asyncio loop - Stack Overflow

    Jul 26, 2024 · python web-scraping playwright playwright-python edited Jul 26, 2024 at 16:10 ggorlen 59.4k 8 119 173

  6. python - ERROR:"It looks like you are using Playwright Sync API inside ...

    Jan 10, 2025 · Since you're working with classes, you can move playwright = sync_playwright().start() to the module-level scope of a shared, one-off module, which is then imported from any other file that …

  7. How do you open multiple pages asynchronously with Playwright …

    I want to open multiple urls at once using Playwright for Python. But I am struggling to figure out how. This is from the async documentation: async def main(): async with async_playwright() as...

  8. python - Get data with Playwright from number of <div> - Stack …

    Mar 19, 2025 · I'm trying to find an example of using Playwright to scaping data from the web. Data with numerous &lt;div&gt; tags is placed on the webpage. I need to extract it from the tag &lt;span&gt; to …

  9. Download files with goto in playwright-python - Stack Overflow

    Sep 8, 2022 · Is there a way to download a file by going straight to its download link with goto in playwright-python? async with page.expect_download(timeout=420000) as download_info: await …

  10. Capturing and Storing Request Data Using Playwright for Python

    Nov 1, 2022 · I'm working with playwright in python (after giving up on a proxymob approach), and I'm trying to capture all the headers from a given request/response using the code: import asyncio from …