Playwright’s getByRole is 1.5x slower than CSS selectors
Playwright’s getByRole uses of querySelectorAll('*') and matches elements by the accessible name.
Tags: performance, serpapi, webscraping