I am currently using selenium webdriver to parse through facebook user friends page and extract all ids from the AJAX script. But I need to scroll down to get all the friend
For my purpose, I wanted to scroll down more, keeping the windows position in mind. My solution was similar and used window.scrollY
window.scrollY
driver.execute_script("window.scrollTo(0, window.scrollY + 200)")
which will go to the current y scroll position + 200