Horje
scroll down selenium python Code Example
python selenium scroll all down
from selenium import webdriver
import time

browser = webdriver.Firefox()
browser.get("https://en.wikipedia.org")
browser.execute_script("window.scrollTo(0,document.body.scrollHeight)")
time.sleep(3)
browser.close()
scroll to element python selenium
from selenium.webdriver.common.action_chains import ActionChains

element = driver.find_element_by_id("my-id")

actions = ActionChains(driver)
actions.move_to_element(element).perform()
how to scroll by in selenium python
   for i in range(20): # adjust integer value for need
       # you can change right side number for scroll convenience or destination 
       driver.execute_script("window.scrollBy(0, 250)")
       # you can change time integer to float or remove
       time.sleep(1)
scroll down selenium python
browser.execute_script("window.scrollTo(0,document.body.scrollHeight)")
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




Python

Related
print multiple lines python Code Example print multiple lines python Code Example
sort and reverse list in python Code Example sort and reverse list in python Code Example
np argmin top n Code Example np argmin top n Code Example
pandas replace string with another string Code Example pandas replace string with another string Code Example
how to check whole number in python Code Example how to check whole number in python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7