Basic Test Setup
1
Create a base test class
Extend
AbstractBasePlaywrightIT to set up Playwright for your tests:The
AbstractBasePlaywrightIT class handles browser lifecycle, page setup, and Vaadin synchronization automatically.2
Write your first test
Create a test class for a simple form:
3
Run the test
Execute your integration test:
Working with Text Fields
Drama Finder provides comprehensive support for Vaadin text fields with intuitive methods:Working with Buttons
Button elements support finding by text and provide assertion methods:Working with Grids
Drama Finder provides powerful Grid testing capabilities:Common Assertions
All Drama Finder elements support common assertions:Element Locators
Drama Finder provides access to internal locators for advanced scenarios:Factory Methods
Elements provide flexible factory methods for different lookup strategies:Testing Patterns
Pattern: Testing Form Validation
Pattern: Testing Form Validation
Pattern: Testing Dynamic Content
Pattern: Testing Dynamic Content
Best Practices
Key recommendations for writing Drama Finder tests:
- Use accessible names: Prefer
getByLabel()andgetByText()over CSS selectors - Wait automatically: Drama Finder assertions auto-retry, avoiding flaky tests
- Scope your lookups: Use scoped factory methods when testing complex layouts
- Test validation states: Always verify both valid and invalid states
- Use assertion methods: Prefer
assertVisible()over raw Playwright assertions when available
Next Steps
Element Reference
Explore all available element types and methods
Testing Patterns
Learn advanced testing patterns and best practices
API Documentation
View complete API reference
GitHub Examples
Browse real-world test examples