Sign inSign up

sbx/playwright:latest

Multi-platform
Manifest digest

sha256:eaf855a0f54fc69c8257c5913aa9af8f9630814d76493a7f66304f5d3a4cfc4b

Last pushed

about 9 hours by sbx

Type

Sandbox Kit

Manifest digest

sha256:eaf855a0f54fc69c8257c5913aa9af8f9630814d76493a7f66304f5d3a4cfc4b

yaml
schemaVersion: "3"
displayName: Playwright
description: Playwright browser-automation toolchain for sandbox agents — the playwright CLI and @playwright/test v1.61.1 with Chromium, installed to a shared system browsers path so the agent user can run headless browser automation and end-to-end tests entirely inside the sandbox.
kind: mixin
provides:
    - [email protected]
capabilities:
    - type: com.docker.sandbox/network-policy@1
      config:
        install:
            allow:
                - archive.ubuntu.com
                - security.ubuntu.com
                - ports.ubuntu.com
                - download.docker.com
        runtime:
            allow:
                - cdn.playwright.dev
                - playwright.download.prss.microsoft.com
                - storage.googleapis.com
    - type: com.docker.sandbox/lifecycle@1
      config:
        install:
            - command: |
                set -euo pipefail
                playwright install-deps chromium
                rm -rf /var/lib/apt/lists/*
              description: Install Chromium's system libraries via apt — the overlay carries the browser tree, apt packages cannot travel in one
              env:
                - HTTP_PROXY
                - HTTPS_PROXY
              user: "0"
    - type: com.docker.sandbox/agent-context@1
      config:
        contentFile: /usr/share/sandbox/kit/playwright/playwright-context.md