【发布时间】:2023-03-16 21:50:01
【问题描述】:
我想在 selenium python 中获取当前滚动高度 比如如果我在堆栈溢出的中间滚动,所以我想要在 python 中使用 selenium 时的当前滚动高度 谢谢 这个我试过了
height = browser.execute_script("return document.body.scrollHeight")
【问题讨论】:
-
到目前为止你尝试过什么?请edit您的问题并附上minimal reproducible example。
-
谢谢,我已经更新了问题
标签: python selenium web-scraping selenium-chromedriver