scroll to bottom python selenium code example
Example 1: scroll to bottom in selenium python
ele =browser.find_element_by_tag_name('body')
ele.send_keys(Keys.END)
time.sleep(3)
Example 2: scroll to bottom in selenium python
driver.execute_script("window.scrollTo(0, Y)")
Example 3: selenium webdriver scroll down python
while driver.find_element_by_tag_name('div'):
driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")
Divs=driver.find_element_by_tag_name('div').text
if 'End of Results' in Divs:
print 'end'
break
else:
continue