MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - How to check the performance of the page after login?

WebPagetest Forums

Full Version: How to check the performance of the page after login?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to check the performance of the page after login?

Kindly explain with an example.
Here is documentation on an example of testing a logged in page
https://sites.google.com/a/webpagetest.o.../scripting


Under the section - Hosted Scripting (WebPagetest) see-
logData 0

// bring up the login screen
navigate http://webmail.aol.com

logData 1

// log in
setValue name=loginId someuser@aol.com
setValue name=password somepassword
submitForm name=AOLLoginForm
I'm trying something similar and it's not working for some reason (thus my other post about tools to test these scripts Wink ), what might be incorrect in the following (which would hopefully help the OP as well).

I'm trying to capture the events on the shopping cart open, but instead the screenshot I'm getting back is as if the user never logged in at all!

Code:
logData 0
navigate https://www.mysite.com/signin
setValue id=SignIn-emailInput myEmail
setValue id=SignIn-passwordInput myPassword
submitForm id=SignIn-form

logData 1
navigate https://www.mysite.com/shoppingcart
Hello!

If the website you’re testing is a Single Page Application (built with e.g. React/Redux or Vue/Vuex), there are some problems with using setValue and submitForm as it does not get picked up by the application State Management library.

I wrote an article to circumvent those problems over at CSS-Tricks that may help you:
https://css-tricks.com/recipes-for-perfo...bpagetest/
We found the documentation to be pretty technical and hard to follow for some of our users. To that end, we wrote an article about testing behind a login and the step by step process here:

https://www.machmetrics.com/speed-blog/w...scenarios/

Hope it helps!
@phacks

I tried running the script, it seems not working now...
https://www.webpagetest.org/result/20091...5c3c10464/
Reference URL's