0% found this document useful (0 votes)
222 views

Playwright Commands

This document provides instructions for running tests using Playwright, including running all tests, starting an interactive UI, running tests on a specific browser, running a single test file, debugging tests, and auto-generating tests with code generation. The recommended first command is "npx playwright test" to run all end-to-end tests.

Uploaded by

saahirstark77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
222 views

Playwright Commands

This document provides instructions for running tests using Playwright, including running all tests, starting an interactive UI, running tests on a specific browser, running a single test file, debugging tests, and auto-generating tests with code generation. The recommended first command is "npx playwright test" to run all end-to-end tests.

Uploaded by

saahirstark77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

npx playwright test

Runs the end-to-end tests.

npx playwright test --ui


Starts the interactive UI mode.

npx playwright test --project=chromium


Runs the tests only on Desktop Chrome.

npx playwright test example


Runs the tests in a specific file.

npx playwright test --debug


Runs the tests in debug mode.

npx playwright codegen


Auto generate tests with Codegen.

We suggest that you begin by typing:

npx playwright test

You might also like