Framework Mode - Cypress vs Selenium vs Playwright comparison
Folder Structure
Cypress Framework Structure:
cypress/
├── e2e/ # Test specs
│ ├── login.cy.js
│ └── dashboard.cy.js
├── fixtures/ # Test data files (JSON)
│ └── users.json
├── support/ # Custom commands, reusable code
│ ├── commands.js
│ └── e2e.js
cypress.config.js # Main config file
package.json # Project dependencies and scripts
Selenium Framework Structure (Java example):
src/
├── main/
│ └── java/
│ └── pages/ # Page Object classes
└── test/
└── java/
├── tests/ # Test classes
└── utils/ # Helper utilities
pom.xml # Maven build and dependencies
Playwright Framework Structure:
tests/ # Test files
├── login.spec.ts
├── dashboard.spec.ts
playwright.config.ts # Playwright config
package.json # Dependencies and scripts
utils/ # Helper functions