Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Karthikkumarjain/7ba302389f9fff2b6f7c1215ebe1d92a to your computer and use it in GitHub Desktop.

Select an option

Save Karthikkumarjain/7ba302389f9fff2b6f7c1215ebe1d92a to your computer and use it in GitHub Desktop.
Creation of new Playwright project
# New Project Setup and Helpers
Steps to create a fresh Project :
Create a folder in your local.
Open cmd --> type "code ." and press enter .
Visual studio code application will open(If it is * installed on the system)
Add on: Plugin -->playwright(by micorsoft)-->download
CTRL+SHIFT+P--->COMMAND PANEL
install playright
select browsers and OK
To open recorder
playwright recorder: npx playwright codegen
To run test with specific browser
If we want to run specific browser: Change script in package.json to "npx playwright test --project=chrome"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment