- Notifications
You must be signed in to change notification settings - Fork12
codewithmmak/playwright-javascript
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
- Download and install Node.js
- Download and install any Text Editor like Visual Code/Sublime/Brackets
- Install GitLens Extension from the Marketplace:
GitLens — Git supercharged by GitKraken https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens - Go to Visual Code Preference > Setting and search
formatOnSaveand enable/ON it.
- Clone the repository into a folder
- Go to Project root directory and install Dependency:
npm install - All the dependencies from package.json would be installed in node_modules folder.
- Add new spec under
e2e-testsfolder - Name the file as .spec.js (e.g. home.spec.js)
- Create folder under page-objects/pages as (e.g. homePage)
- Under page folder create constant, helper and page object file.
- .constants.js (e.g. home.constants.js)
- .helper.js (e.g. home.helper.js)
- .po.js (e.g. home.po.js)
- Go to Project root directory and run command:
npm test - If you want to run e2e tests then run command:
npm run e2e
- Go to Project root directory and run command:
npm update
- Go to Project root directory:
./playwright-report/index.html
- Go to Project root directory:
./test-results/
- SauceLabs Quickstart
- Set Environment Variables:
- Open Terminal
- Run
touch ~/.bash_profile; open ~/.bash_profile - In TextEdit, add
export SAUCE_USERNAME=“YOUR USERNAME”export SAUCE_ACCESS_KEY="YOUR ACCESS KEY"- Save the .bash_profile file and Quit (Command + Q) Text Edit.
- In Terminal echo $SAUCE_USERNAME
- In Terminal echo $SAUCE_ACCESS_KEY
- Configure:
saucectl config - Run tests:
npm saucectl run
- Set Environment Variables:
About
This is a test automation framework designed using Playwright and JavaScript.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.

