📜  如何在 selenium python 代码示例中滚动

📅  最后修改于: 2022-03-11 14:46:40.283000             🧑  作者: Mango

代码示例1
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)