How to get finish time from network console tab of firefox through an api?
Through the network tab found on web developer tool option,how can i find out the finish time which is present in the summary section of network tab through an api. For example: Load time of a webpage can be calculated directly as it present in the summary section of the network tab or also through the Performance API by just mentioning the console section (performance.timing.loadEventEnd-performance.timing.navigationStart) .So i want to know is there any api or any way in which the finish time can be calculated so that it can be used in the automation.
Tutte le risposte (5)
Anything useful in the source code?
I'm not sure if there are many around here that know about such advanced features, so maybe ask advice at the Stack Overflow forum site.
loadEventEnd is the finish time, isn't it?
https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventEnd
Oh wait, the compatibility table in that MDN article says no support in Firefox. I guess you have to use
https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime
+
https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration
Timestamp math is a little beyond our usual mission, however.
cor-el said
Anything useful in the source code? I'm not sure if there are many around here that know about such advanced features, so maybe ask advice at the Stack Overflow forum site.
How can the source code be useful ?i went through but couldn't find anything ?
jscher2000 said
loadEventEnd is the finish time, isn't it? https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventEnd
NO.The loadeventEnd - navigationStart gives us the Load time.But I am searching for something which can give me finish time that also take into consideration the rendering time