标签:cti .exe height var timeout def one drive window
def scroll(driver):
driver.execute_script("""
(function () {
var y = document.body.scrollTop;
var step = 100;
window.scroll(0, y);
function f() {
if (y < document.body.scrollHeight) {
y += step;
window.scroll(0, y);
setTimeout(f, 50);
}
else {
window.scroll(0, y);
document.title += "scroll-done";
}
}
setTimeout(f, 1000);
})();
""")
标签:cti .exe height var timeout def one drive window
原文地址:https://www.cnblogs.com/simadongyang/p/9385363.html