k6 includes a browser module for testing web applications with a real Chromium browser — measuring Core Web Vitals and user experience metrics. Browser Test Example Hybrid Tests (API + Browser)
Key Takeaways
Browser module tests real Chromium for Web Vitals.
Measure LCP, FID, and CLS — Core Web Vitals metrics.
Use page.locator() for DOM interaction — click, type, navigate.
Hybrid tests combine API load + browser experience testing.
Screenshots capture visual state on test failures.