All scrolling functions scroll the currently selected element, which defaults to the whole page. So if you select the scrollable element it will scroll that element instead of the whole page:
Code: Select all
Select.ScrollableElement
InfiniteScroll
· Select.ListItem
· 1000
· true
To select the scrollable element, just select any element inside and press the
Select Parent button in the selection panel (you may need to press the
Expand button at the bottom right corner first) until the scroll bar is included in the selection.
Note that the sample above will select each list item, so below that action you'd put whatever actions extract from each individual item inside the scrollable element (see
here for example). This is usually better than loading all the contents at once, since there can be millions of items which could end up crashing the browser.
If there are not so many items to load, you can still load them all before running any other actions like this:
Code: Select all
Sequence.Last
· Sequence.Take
· 10
· Sequence.Do
· Select.ScrollableElement
Browser.ScrollToBottom
Just replace the number
10 with the number of times you want the scroll to run.
If you're still having trouble please send the URL and I'll take a look at it.