Created
October 3, 2023 09:39
-
-
Save Karthikkumarjain/7ba302389f9fff2b6f7c1215ebe1d92a to your computer and use it in GitHub Desktop.
Creation of new Playwright project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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