Answers for "selenium scrollbar python"

1

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)
Posted by: Guest on February-27-2021
0

scroll down selenium python

browser.execute_script("window.scrollTo(0,document.body.scrollHeight)")
Posted by: Guest on June-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language