I would like to scroll down, up to the maximum end of the scroll (up to the last person's name), the list of people who have left a like on Facebook (in the "All" section). The link, for example from a New York Time post, is this: https://www.facebook.com/nytimestravel/photos/a.142272672496512/5176942835696112/ (maybe to view you have to log in with your facebook, I don't know)
I am using this code, but it is not working:
#code for access to facebook with driver in firefox
#(i avoid writing so as not to stretch and be more synthetic)
# ....
#scrollbar
element = driver.find_element(By.XPATH,'/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div/div[2]/div/div[1]/div/div[3]')
driver.execute_script("return arguments[0].scrollIntoView();", element)
I'm not getting any errors, but the problem is, using this code, nothing happens. The vertical scrollbar does not move and the list does not scroll down
I've tried using several xpatches, but they don't work. I am using this code. I don't know if I'm wrong to enter the xpatch or if the whole code is wrong. Can anyone help me? Thanks