03-16-2016, 02:56 PM
Hi Guys,
can some one help me if there is any wrong with script and use case is i need to scroll down the page after navigate.
Script:-
---------
combineSteps
navigate http://www.walmart.com/search/?query=tod...s&cat_id=0
execAndWait window.setInterval('window.scrollBy(0,100)', 0)
execAndWait document.querySelector('ul.paginator-list>li:nth-child(2)>button').click()
Actual Behaviour:- Scrolling is getting applied to all the test steps.
Expected Behaviour :- should only happen after navigate step.
WPT link :- http://www.webpagetest.org/result/160316_EM_1EN/
Thanks,
ANil.
can some one help me if there is any wrong with script and use case is i need to scroll down the page after navigate.
Script:-
---------
combineSteps
navigate http://www.walmart.com/search/?query=tod...s&cat_id=0
execAndWait window.setInterval('window.scrollBy(0,100)', 0)
execAndWait document.querySelector('ul.paginator-list>li:nth-child(2)>button').click()
Actual Behaviour:- Scrolling is getting applied to all the test steps.
Expected Behaviour :- should only happen after navigate step.
WPT link :- http://www.webpagetest.org/result/160316_EM_1EN/
Thanks,
ANil.