Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: playwright

[9:14] (extern: com.lehman.aussom.AussomPlaywright) extends: object

The playwright class is the root entry point for the Playwright browser automation library. Create a new instance to get access to browser type launchers (chromium, firefox, webkit).

Methods

  • playwright ()

    Constructs a new playwright instance and initializes the Playwright driver process.

  • newPlaywright ()

  • close ()

    Closes the Playwright instance and terminates the driver process. All browsers created by this instance will be closed.

    • @r This object.
  • chromium ()

    Returns the Chromium browser type which can be used to launch or connect to a Chromium browser instance.

    • @r A browsertype object for Chromium.
  • firefox ()

    Returns the Firefox browser type which can be used to launch or connect to a Firefox browser instance.

    • @r A browsertype object for Firefox.
  • webkit ()

    Returns the WebKit browser type which can be used to launch or connect to a WebKit browser instance.

    • @r A browsertype object for WebKit.