This is documentation for the next version of Grafana k6 documentation. For the latest stable release, go to the latest version.
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.
- Handling Stale or Dynamic Elements After Navigation
 - Use Page.close to clean up test resources
 - Prevent cookie banners from blocking interactions
 - Hybrid approach to performance
 - Page object model
 - Prevent too many time series error
 - Select elements
 - Simulate user input delay
 - When to use sleep() and page.waitForTimeout()
 


