我想在 selenium python 中获取当前滚动高度 比如如果我在堆栈溢出的中间滚动,所以我想要在 python 中使用 selenium 的当前滚动高度 谢谢 这个我试过了
height = browser.execute_script("return document.body.scrollHeight")
最佳答案
试试这个:
height = browser.execute_script("return document.documentElement.scrollHeight")
关于python - 如何在 selenium python 中获取当前滚动高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61877719/