Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Learn More

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

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

  • 5 risposte
  • 1 ha questo problema
  • 1 visualizzazione
  • Ultima risposta di 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.

Tutte le risposte (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