Troubleshooting Playwright

Troubleshooting Playwright integration with Currents

If you are experiencing issues with using @currents/playwright, enable debug mode to collect more information about the failure and submit a support request via our support channels.

TL;DR share the following information

Collect environment information

  • Package Versions

  • Currents Run ID or Dashboard URL associated with the issue

  • Screenshots or video recordings if applicable

  • Full error message, including the stack trace, if available

  • Full and relevant CI execution logs with sensitive information redacted

  • CI pipeline configuration

    • The exact commands used during the execution

    • Relevant configuration of the CI setup stages

Collect and share the debug logs

  • npx pwc --pwc-debug=full ... OR

  • npx pwc-p --pwc-debug=remote ... OR

  • DEBUG=currents* playwright test ...

1. Collecting Environment Information

Please collect the following information to help us effectively debug the problem:

  • The associated dashboard Run URL

  • Screenshots if applicable

  • Your setup method and configuration files

  • The exact command used to run playwright

  • Environment information (use the command below)

Use the following command to print information about your CI environment

npx envinfo --system --binaries --browsers --npmPackages --duplicates --npmGlobalPackages

2. Activate Debug Mode

@currents/playwright simplifies collecting the debug information by automatically uploading the logs to Currents.

To enable uploading the debug logs:

  • For pwc command-line executable run pwc --pwc-debug=full OR

  • For pwc-p run pwc-p --pwc-debug=full OR

  • Set environment variable DEBUG=currents* playwright test...

--pwc-debug enables uploading the debug logs to our servers (see --pwc-debug [boolean | "remote" | "full"]:

  • remote uploads the debug logs to Currents servers;

  • full prints the logs to stdout and also upload them to Currents.

For example:

npx pwc --pwc-debug=full ... 

When enabled, the debug logs will be uploaded to Currents servers and a confirmation message will be shown after the run's completion, for example:

Remote debug logs notification example

Last updated

Was this helpful?