By default, the NPM package automatically downloads browser executables during installation. The playwright-core NPM package can be used to skip automatic downloads.

    playwright.chromium

    • returns: <>

    This object can be used to launch or connect to Chromium, returning instances of ChromiumBrowser.

    playwright.devices

    playwright.errors

    Playwright methods might throw errors if they are unable to fulfill a request. For example, might fail if the selector doesn’t match any nodes during the given timeframe.

    For certain types of errors Playwright uses specific error classes. These classes are available via playwright.errors.

    playwright.firefox

    This object can be used to launch or connect to Firefox, returning instances of .

    playwright.selectors

    Selectors can be used to install custom selector engines. See for more information.

    playwright.webkit

    • returns: <>