01-09-2014, 01:29 AM
I have a question around scripting.
I am logging on to a website, and when I press the Login button, want to trap how long the page takes to load.
The problem is that its Ajax and WPT tells me a page has loaded when the 3 graphs are still loading.
One of them takes longer and is a specific request that I can see (https://www.mywebsite.com/DisplayChart), so I thought it would be the case that I need to capture this request and only measure Document Complete when the request is complete, but no joy.
This is the code structure:
----
logData 0
navigate https://www.mywebsite.com
// log in
setValue name=AuthenticationUserName myuser
setValue name=AuthenticationPassword mypassword
logData 1
setDOMRequest https://www.mywebsite.com/DisplayChart name=AuthenticationLoginButton
---
If anyone can point me in the right direction it would be appreciated, thanks.
Steve
I am logging on to a website, and when I press the Login button, want to trap how long the page takes to load.
The problem is that its Ajax and WPT tells me a page has loaded when the 3 graphs are still loading.
One of them takes longer and is a specific request that I can see (https://www.mywebsite.com/DisplayChart), so I thought it would be the case that I need to capture this request and only measure Document Complete when the request is complete, but no joy.
This is the code structure:
----
logData 0
navigate https://www.mywebsite.com
// log in
setValue name=AuthenticationUserName myuser
setValue name=AuthenticationPassword mypassword
logData 1
setDOMRequest https://www.mywebsite.com/DisplayChart name=AuthenticationLoginButton
---
If anyone can point me in the right direction it would be appreciated, thanks.
Steve