I needed it for the same issue , i needed to scrape a social media website
y = 1000
for timer in range(0,50):
driver.execute_script("window.scrollTo(0, "+str(y)+")")
y += 1000
time.sleep(1)
the sleep every 1000 is to allow to load
More Related Contents:
- How to sleep Selenium WebDriver in Python for milliseconds
- Running Selenium Webdriver with a proxy in Python
- How to allow or deny notification geo-location microphone camera pop up
- How can I download a file on a click event using selenium?
- Python Selenium accessing HTML source
- Message: Element could not be scrolled into view while trying to click on an option within a dropdown menu through Selenium
- Log into gmail using Selenium in Python
- Select -> option abstraction
- How to handle elements inside Shadow DOM from Selenium
- How to set the timeout of ‘driver.get’ for python selenium 3.8.0?
- in selenium web driver how to choose the correct iframe
- selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities with Firefox 46 through Selenium
- How to set Selenium Python WebDriver default timeout?
- Turning off logging in Selenium (from Python)
- Expected browser binary location, but unable to find binary in default location, no ‘moz:firefoxOptions.binary’ capability provided using GeckoDriver
- selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH with GeckoDriver Selenium Firefox
- Python/Selenium incognito/private mode
- Selenium on MAC, Message: ‘chromedriver’ executable may have wrong permissions
- Get all child elements
- How to get past a cookie agreement page using Python and Selenium?
- Is there a way to perform a mouseover (hover over an element) using Selenium and Python bindings?
- How to solve ‘Getting Default Adapter failed’ error when launching Chrome and try to access a webpage using the ChromeDriver using Selenium
- Logic Operators in WebDriverWait Expected Conditions
- ElementNotInteractableException: Message: element not interactable error sending text in search field using Selenium Python
- Selenium webdriver: How do I find ALL of an element’s attributes?
- Chrome browser initiated through ChromeDriver gets detected
- selenium.common.exceptions.ElementNotVisibleException: Message: element not visible while trying to access an element with Python + Selenium
- Selenium can’t open a second page
- What is unittest in selenium Python?
- How do I get current URL in Selenium Webdriver 2 Python?