No project description provided
Project description
ADACS Playwright Class
Usage
Use this class instead of the django StaticLiveServerTestCase.
It adds 2 useful class properties:
self.browser = A browser object from playwright used for accessing the page. self.playwright = The return from sync_playwright().start()
This class only supports chronium and synchronous tests.
Example
from adacs_django_playwright.adacs_django_playwright import PlaywrightTestCase
class MyTestCase(PlaywrightTestCase):
def awesome_test(self):
page = self.browser.new_page()
page.goto(f"{self.live_server_url}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file adacs_django_playwright-1.0.0.tar.gz
.
File metadata
- Download URL: adacs_django_playwright-1.0.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.6.51
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29d2585006e3a701271f29720f3c63faf1e6b1ca9e0680dc4cf3a2b56e2e3587 |
|
MD5 | 1f6629e2ebc16ca7a038dad2f0922215 |
|
BLAKE2b-256 | ee8ced56af3412be6461ece099b4d54233a185e613c4d7be0b483ccea4a01420 |
File details
Details for the file adacs_django_playwright-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: adacs_django_playwright-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.6.51
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed9cef7d6b337d0ad3dcf639e5beaddec16cb514bab263c963f984e82c6fb641 |
|
MD5 | 787c1ef159d7410ede3fc8417e268014 |
|
BLAKE2b-256 | e87d1fb6d8f74194c06b49c73b65cf78749050f2fc54d0f7898e20f3a12dde75 |