【python】UI自动化操作属于div标签的滚动条滚动

#js='docunent.getElenentsByClassName("hf-layout-outer-box")[0].scrollTop=10000'#编写js脚本模拟
#使用div标签的class属性值先对该div标签进行定位,然后在模拟滚动,最底部为10000,最顶部为0
#driver.execute_script(js)#执行js脚本

 注释:来自于博主徐大家

原文地址:https://www.cnblogs.com/luoguoxing/p/14240654.html