Current time: 09-28-2020, 05:12 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Waterfall view not showing up data for click or scroll events
03-15-2016, 09:08 AM (This post was last modified: 03-15-2016 10:35 AM by anilpothala.)
Post: #1
Waterfall view not showing up data for click or scroll events
HI Guys,

We are testing pagination and want to compare load time between page1 and page2. we have script ready to navigate from page1 to page2 but the waterfall view is not showing up the page2 load.

we only see load times in waterfall view for this step.
navigate http://www.walmart.com/search/?query=tod...s&cat_id=0
but not for
execAndWait document.querySelector('ul.paginator-list>li:nth-child(2)>button').click()

Script:-
--------
combineSteps
navigate http://www.walmart.com/search/?query=tod...s&cat_id=0
execAndWait document.querySelector('ul.paginator-list>li:nth-child(2)>button').click()

Test :-
-------

http://www.webpagetest.org/result/160315_3N_CB/


Thanks,
anil.
Find all posts by this user
Quote this message in a reply
03-16-2016, 01:09 AM
Post: #2
RE: Waterfall view not showing up data for click or scroll events
Not sure if it was an issue with that test location, an intermittent issue or something else but I just ran it on the Dulles Thinkpad's and it looks to have navigated correctly: http://www.webpagetest.org/result/160315...de06268e0/

Only change I made was that the execAndWait command had a space after the tab and before "document..." that I removed but that shouldn't cause any issues.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-16-2016, 03:55 AM
Post: #3
RE: Waterfall view not showing up data for click or scroll events
Thanks for the reply Patrick. Navigation looks good by watching video and concern is below event is not getting captured in waterfall view even though navigation works perfectly.

execAndWait document.querySelector('ul.paginator-list>li:nth-child(2)>button').click()

Can you please provide inputs on what would be the issue.
Find all posts by this user
Quote this message in a reply
03-16-2016, 03:58 AM
Post: #4
RE: Waterfall view not showing up data for click or scroll events
I'm fairly certain the activity from request 95+ in my test are from the activity caused by clicking on the element: http://www.webpagetest.org/result/160315...1/details/
Visit this user's website Find all posts by this user
Quote this message in a reply
03-16-2016, 04:06 AM (This post was last modified: 03-16-2016 04:14 AM by anilpothala.)
Post: #5
RE: Waterfall view not showing up data for click or scroll events
No Patrick. The way how application designed is on page1 load they do ajax call for retrieving first 4 images of page2 for better look and feel. So, that is the #96 request we are seeing waterfall view.

URL: http://www.walmart.com/search/v2/ajax-se...ensize=320
Loaded By: http://i5.walmartimages.com/dfw/63fd9f59....v106.js:4
Host: http://www.walmart.com
IP: 23.13.209.194
Error/Status Code: 200
Priority: Medium
Client Port: 59928
Request Start: 16.995 s
Time to First Byte: 603 ms
Content Download: 21 ms
Bytes In (downloaded): 13.9 KB
Bytes Out (uploaded): 1.5 KB

navigate http://www.walmart.com/search/?query=tod...s&cat_id=0

To be more clear, waterfall view shows only first four images of page2 (step 97 to 100 ) as they are loaded as part of page1 load (ajax call ). The remaining images appears on page2 doesn't showup in waterfall view.
Find all posts by this user
Quote this message in a reply
03-16-2016, 06:01 AM
Post: #6
RE: Waterfall view not showing up data for click or scroll events
Hey Patrick. You are right the activity from request 95+ are for page 2.
Thanks for your quick help.
Find all posts by this user
Quote this message in a reply
03-16-2016, 09:34 AM
Post: #7
RE: Waterfall view not showing up data for click or scroll events
And also i would like to do scroll down on page1 before clicking on page2. i have added below script and some how scroll feature is working for page2 instead of page1. can you please help out here.

combineSteps
navigate http://www.walmart.com/search/?query=tod...s&cat_id=0
exec window.setInterval('window.scrollBy(0,600)', 1000)
execAndWait document.querySelector('ul.paginator-list>li:nth-child(2)>button').click()
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)