Skip to content

playwright

Capabilities

--browser $/playwright.js
Module playwright
Screenshots ✔️ .png
Scripts ✔️
Traces console, network

Browser selection is done by passing browser parameters. For instance :

ui5-test-runner --browser $/playwright.js -- --browser chromium

Supported browsers :

  • chromium
  • firefox
  • webkit

Options

  -b, --browser <name>            Browser driver (default: "chromium")
  --visible [flag]                Show the browser (default: false)
  -w, --viewport-width <width>    Viewport width (default: 1280)
  -h, --viewport-height <height>  Viewport height (default: 720)
  -l, --language <lang>           Language (default: "en-US")
  -u, --unsecure                  Disable security features (default: false)
  -v, --video                     Record video (default: false)
  -n, --har                       Record network activity with har file
                                  (default: false)

Implementation notes

  • If you use the video recording feature (--video), it is recommended to turn off the screenshots as it makes the screen flicker
  • In the latest version, playwright requires an additional installation step (npx playwright install). The command executes it.