I want to get current scroll height in selenium python Such as if i have scrolled in the middle of stack overflow, so i want the current scroll height in using selenium in python Thanks I have tried this
height = browser.execute_script("return document.body.scrollHeight")
Instead try this :
height = browser.execute_script("return document.documentElement.scrollHeight")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With