Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

scroll to bottom in selenium python

driver.execute_script("window.scrollTo(0, Y)") 
Comment

scroll to bottom in selenium python

ele =browser.find_element_by_tag_name('body')
ele.send_keys(Keys.END)
time.sleep(3)
Comment

Scroll a web page to bottom using selenium webdriver in python

SCROLL_PAUSE_TIME = 0.5

# Get scroll height
last_height = driver.execute_script("return document.body.scrollHeight")

while True:
    # Scroll down to bottom
    driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")

    # Wait to load page
    time.sleep(SCROLL_PAUSE_TIME)

    # Calculate new scroll height and compare with last scroll height
    new_height = driver.execute_script("return document.body.scrollHeight")
    if new_height == last_height:
        break
    last_height = new_height
Comment

PREVIOUS NEXT
Code Example
Python :: rename file python 
Python :: pandas split train test 
Python :: position in alphabet python 
Python :: python logger format time 
Python :: How to create an infinite sequence of ids in python? 
Python :: browse list python 
Python :: selenium find element by link text python 
Python :: array must not contain infs or NaNs 
Python :: price for bazaar item hypixel python 
Python :: image to array keras 
Python :: find python path windows 
Python :: image from wikipedia module in python 
Python :: rotate x labels in plots, matplotlib 
Python :: matplotlib axes limits 
Python :: urllib python 
Python :: rock paper scissors game in python 
Python :: how to import PyMem python 
Python :: how to install python3.6 on ubuntu 
Python :: get all index of item in list python 
Python :: python replace newline 
Python :: python zip lists into dictionary 
Python :: sklearn adjusted r2 
Python :: dataframe unique values in each column 
Python :: check if numpy array is 1d 
Python :: equivalent of setInterval python 
Python :: perimeter of semicircle formula 
Python :: create additional rows for missing dates pandas 
Python :: matplotlib bold 
Python :: web scraping linkedin profiles python jupyter 
Python :: ssl unverified certificate python 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =