May-10-2019, 04:45 PM
So im trying to scroll a page with selenium to make certain objects visible so that the ChromeDriver can properly select them. Ive been using:
"elem = driver.find_element_by_tag_name('html')"
"elem.send_keys(Keys.END)"
But it doesnt always work right, ive also tried:
"driver.execute_script("window.scrollTo(0, 200))"
This method never works on the page im working on, literally does nothing. How can i scroll a specific amount or to get a certain object in view?
apologies for my formatting if anything is wrong
"elem = driver.find_element_by_tag_name('html')"
"elem.send_keys(Keys.END)"
But it doesnt always work right, ive also tried:
"driver.execute_script("window.scrollTo(0, 200))"
This method never works on the page im working on, literally does nothing. How can i scroll a specific amount or to get a certain object in view?
apologies for my formatting if anything is wrong