Skip to content

SharkyFi/playwright-starter-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

playwright-starter-project

A simple Playwright starter project with example tests to help you get started with browser automation and testing.

📦 Installation

npm install
npx playwright install

🚀 Running Tests

Run all tests:

npm test

Run tests in headed mode (visible browser):

npm run test:headed

Run tests in UI mode (interactive):

npm run test:ui

Run tests in debug mode:

npm run test:debug

📝 Test Examples

This project includes several simple test examples:

1. Basic Navigation Tests (01-basic-navigation.spec.js)

  • Loading a webpage and verifying the title
  • Checking page headings
  • Verifying URLs

2. Element Interaction Tests (02-element-interaction.spec.js)

  • Clicking on links
  • Verifying button visibility
  • Checking element text content
  • Working with multiple elements

3. Form and Input Tests (03-form-input.spec.js)

  • Filling form fields
  • Submitting forms and verifying results
  • Clearing and refilling input fields

4. API Testing Examples (04-api-testing.spec.js)

  • Making GET requests
  • Verifying response status and headers
  • Handling JSON response data

5. Screenshot Tests (05-screenshots.spec.js)

  • Taking full page screenshots
  • Capturing specific element screenshots
  • Verifying element states

📚 Learn More

🤝 Contributing

Feel free to explore and modify these tests to learn more about Playwright!

About

public starter project for devnet sol from faucet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors