Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adacs-django-playwright-0.1.0.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

adacs_django_playwright-0.1.0-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page