Rayrun
← Back to Discord Forum

webvitals

weefeegowda96posted in #help-playwright
Open in Discord
weefeegowda96

Hi All, has anyone implemented to pull UI metrics like CLS, LCP etc using webvitals library in playwright. Thanks

This thread is trying to answer question "Has anyone implemented to pull UI metrics like CLS, LCP etc using webvitals library in playwright?"

2 replies

As you can see, you can get several web vitals with just a few lines of code at the end of your test.

Or if you want to use the web vitals library, you should evaluate it in the page running your tests, then do another page.evaluate(...) to get the metrics you want.

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].