Playwright Web Testing

Playwright is a framework for automated web application testing developed by Microsoft. It is an alternative to Selenium or Cypress for automated web application testing.

Starting a Playwright Test

To execute Playwright tests on your webmate infrastructure, set two environment variables.

1
2
export SELENIUM_REMOTE_URL="https://selenium.webmate.io/wd/hub" 
export SELENIUM_REMOTE_CAPABILITIES='{ "browserName": "chrome","platformName": "WINDOWS_11_64", "browserVersion": "126", "wm:apikey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=", "wm:project": "7c4f09fd-xxx-xxx-xxx-xxx"}'

After setting these variables, you can execute your Playwright tests as usual.

1
npx playwright test