Advanced Usage: Tarantula Playwright Adapter
Custom Elements
- Extend
PlaywrightElement
to add custom methods or override behavior.
- Register your custom element class using
PlaywrightDriver.useElementClass()
.
Service Injection
- Use
tsyringe
to inject services and dependencies.
Best Practices
- Keep Playwright-specific logic in the adapter.
- Use the core interfaces for all abstractions.
- Write reusable, composable page and component models.
Troubleshooting
- Ensure all peer dependencies are installed.
- Check the FAQ for common issues.