📜  滚动到元素 python selenium - Python 代码示例

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

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