{"repo":"mxschmitt/python-django-playwright","free":true,"listed":false,"github":"https://github.com/mxschmitt/python-django-playwright","clone":"git clone https://github.com/mxschmitt/python-django-playwright.git","description":"Example how to use Playwright in combination with Django.","language":"Python","stars":32,"topics":["playwright","hacktoberfest"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"Django end-to-end testing with Playwright A minimal example of running Playwright browser tests inside Django's StaticLiveServerTestCase , so you can drive a real browser against a real Django server with manage.py test . Setup Requires uv and Python 3.12+. Run the tests What the example shows test login.py starts a Chromium browser once per test class, opens Django's admin login page served by the live test server, submits invalid credentials, and asserts the error banner is shown: DJANGO ALLOW ASYNC UNSAFE is needed because Playwright's sync API runs an event loop, which Django otherwise refuses to allow inside the test runner. See also - Playwright for Python docs - Django: LiveServerTestCase","default_branch":null,"files":null,"tree":[],"storefront":"/r/mxschmitt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mxschmitt/python-django-playwright/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}