selenium操作浏览器滚动条——滚动到最下方
js = "var q=document.documentElement.scrollTop=100000"
driver.execute_script(js)
time.sleep(5)
selenium操作浏览器滚动条——滚动到最上方
js = "var q=document.documentElement.scrollTop=0"
driver.execute_script(js)
time.sleep(5)
js = "var q=document.documentElement.scrollTop=100000"
driver.execute_script(js)
time.sleep(5)
js = "var q=document.documentElement.scrollTop=0"
driver.execute_script(js)
time.sleep(5)
本文标题:selenium学习笔记7——操作浏览器滚动条
本文链接:https://www.haomeiwen.com/subject/lpsbuftx.html
网友评论