(1)竖向下滚动:
js = ‘document.getElementsByClassName(“body list notice”)[0].scrollTop=10000’
Driver.execute_script(js)
(2)竖向上滚动只要吧scrollTop值改为0即可。
(1)竖向下滚动:
js = ‘document.getElementsByClassName(“body list notice”)[0].scrollTop=10000’
Driver.execute_script(js)
(2)竖向上滚动只要吧scrollTop值改为0即可。