Instrumenting Playwright tests with Helios

Use the installation instructions below if you're using Playwright with pytest as your testing framework and would like to add your existing tests to Helios for complete E2E troubleshooting.

Navigate to your project's root directory, and install the latest Helios OpenTelemetry SDK:

pip install helios-opentelemetry-sdk

Provide the following arguments when running your tests:

pytest <tests_path> --hs_access_token=<API_TOKEN> --hs_enabled=true

Invoke initialize_playwright_test with Playwright's page object at the beginning of the test:

from helios import initialize_playwright_test


def some_playwright_test(page):
   # Test code