Controlling Chrome coverage feature with chromedriver Controlling Chrome coverage feature with chromedriver selenium selenium

Controlling Chrome coverage feature with chromedriver


From looking at this article, there is a reference in the comments that there's no way to export this data right now but there is a feature request.

There's another article here that talks about how the feature works and in the comments someone asks this same question. The response was that there's an API here that maybe you could take advantage of using a Chrome extension.


Now, Selenium only has access to the browser context via execute_script aimed to execute window.__coverage__; to collect the Front-end's coverage data. So, you need to instrument your source code using nyc and parse the returned value.