Migrated from GitHub trtmn/playwright_test_page
- HTML 99.6%
- Python 0.4%
|
|
||
|---|---|---|
| .github/workflows | ||
| .gitignore | ||
| .python-version | ||
| index.html | ||
| LICENSE | ||
| main.py | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Playwright Test Page
A static HTML page designed for testing with Playwright. This page includes various HTML elements with IDs and ARIA attributes, making it perfect for beginners learning Playwright automation.
Features
- Form Elements: Text inputs, email, password, number, date, select dropdowns, textarea, checkboxes, and radio buttons
- Buttons: Primary, secondary, danger, disabled, and modal trigger buttons
- Images: Gallery of cat images from placecats.com
- Tables: Data table with multiple rows and status badges
- Lists: Unordered and ordered lists
- Alerts: Success, error, and info alert messages
- Modal Dialog: Interactive modal for testing
All elements include:
- Unique IDs for easy selection
- ARIA labels and attributes for accessibility testing
- Semantic HTML structure
View the Page
The page is published on GitHub Pages: View Live
Local Development
Simply open index.html in your browser or serve it with a simple HTTP server:
python -m http.server 8000
Then visit http://localhost:8000
Testing with Playwright
This page is designed to be tested with Playwright. You can use various selectors:
page.get_by_id("name-input")- Select by IDpage.get_by_label("Full Name")- Select by labelpage.get_by_role("button", name="Submit Form")- Select by rolepage.get_by_alt_text("Cat placeholder image - Neo")- Select images by alt text
License
This project is licensed under the MIT License - see the LICENSE file for details.
GitHub Pages Setup
This repository uses GitHub Actions to automatically deploy to GitHub Pages. After pushing to the main branch:
- Go to your repository settings
- Navigate to "Pages" in the left sidebar
- Under "Source", select "GitHub Actions"
- The page will be automatically deployed on each push to main