SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.67k stars 8.19k forks source link

Can we add methods to get DOMContentReady and actual load time of a page? #7654

Closed gowthamraj198 closed 3 years ago

gowthamraj198 commented 5 years ago

🚀 Feature Proposal

In any browse, we get the actual page load time and DOMContentReady time from Dev tools. Currently selenium does not have any webdriver methods to provide them. It will be a very great value if we add the methods from performance front.

Motivation

I am doing a workaround to get the time. Interested in applying same logic to selenium so it will easy to get them.

Screenshot

Screen Shot 2019-10-06 at 11 48 18

Also I would like to work in this.

cgoldberg commented 5 years ago

you can get all timing event data via CDP commands or JavaScript injection.

diemol commented 3 years ago

We normally leave these feature requests open for a while to see if the community has a strong interest in them, if there is a good and wide use case to support or if somehow a feature request is aligned with a current development.

In addition, some of this use cases should be supported by the current implementation of CDP through WebDriver and the future https://github.com/w3c/webdriver-bidi

This request, however, has not gotten any traction or interest. So I will go ahead and close it.