When it comes to testing pages using Lighthouse, WebPageTest or other similar tools, cookie and similar consent banners are a pain! They can cause layout shifts, on mobile the banner is sometimes the element for Largest Contentful Paint (LCP), they visually obscure other parts of the page, and if implemented correctly only some of the page's resources will be fetched. When analysing sites one of m
![Bypassing Cookie Consent Banners in Lighthouse and WebPageTest](https://cdn-ak-scissors.b.st-hatena.com/image/square/c2c1529df517358b5830c066958cf4a40fae0e1f/height=288;version=1;width=512/https%3A%2F%2Fandydavies.me%2Fblog%2Fimages%2F2021-03-25-bypassing-cookie-consent-banners-in-lighthouse-and-webpagetest%2Fconsentbanner.jpeg)