Menu
Scroll for more
This is documentation for the next version of Grafana k6 documentation. For the latest stable release, go to the latest version.
Open source
Recommended practices
This section presents some examples and recommended practices when working with the k6 browser module to leverage browser automation as part of your k6 tests.
- Handle stale or dynamic elements after navigation
- Hybrid approach to performance
- Page object model
- Prevent cookie banners from blocking interactions
- Prevent too many time series error
- Select elements
- Simulate user input delay
- Use Page.close to clean up test resources
- When to use sleep() and page.waitForTimeout()
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video

Performance testing and observability in Grafana Cloud
Optimize user experiences with Grafana Cloud. Learn real-time insights, performance testing with k6, and continuous validation with Synthetic Monitoring.
Events

User-centered observability: load testing, real user monitoring, and synthetics
Learn how to use load testing, synthetic monitoring, and real user monitoring (RUM) to understand end users' experience of your apps. Watch on demand.