microsoft / playwright-python

Python version of the Playwright testing and automation library.
https://playwright.dev/python/
Apache License 2.0
11.82k stars 901 forks source link

[Feature]: add page.coverage() #1029

Open LeMoussel opened 2 years ago

LeMoussel commented 2 years ago

Feature request

With Node.js, we have, with the Chromium browser, page.coverage() for gathers information about parts of JavaScript and CSS that were used by the page (Coverage).

For Python, I didn't find any documentation about this feature. So I deduce that this feature does not exist for Python Playwright.

Feature request: Have Coverage for Playwright Python

holycrap872 commented 2 years ago

Do you know if there is any plan to start this in the next few months? It seems it would be extremely helpful for unlocking some key features for understanding test behavior.

jackschu commented 2 years ago

+1 a nice middle step would be to include some info on the docs page as this being not supported yet

ie on https://playwright.dev/docs/api/class-coverage clicking python from the language selector gives this generic 404 page https://playwright.dev/python/docs/api/class-coverage

which left me a bit confused as to if it was just a broken link / missing doc page or if the feature was not yet implemented

cha0wg commented 1 year ago

Any update?