1、将目标元素移动到页面可是范围内:
el = driver.find_element_by_id("ageInputId1")
el.location_once_scrolled_into_view
2、将浏览器滚动条移动至最底部:
js = "var q=document.documentElement.scrollTop=10000"
driver.execute_script(js)
标签:script blog div cut cat exe exec driver bsp
1、将目标元素移动到页面可是范围内:
el = driver.find_element_by_id("ageInputId1")
el.location_once_scrolled_into_view
2、将浏览器滚动条移动至最底部:
js = "var q=document.documentElement.scrollTop=10000"
driver.execute_script(js)
标签:script blog div cut cat exe exec driver bsp
原文地址:https://www.cnblogs.com/xjklmycw/p/8608445.html