Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to get finish time from network console tab of firefox through an api?

  • 5 replies
  • 1 has this problem
  • 1 view
  • Last reply by Sammore

more options

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.

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.

All Replies (5)

more options

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.

more options
more options

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.

more options

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 ?

more options

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