1

Why doesn't driver.execute_script("window.scrollTo(0, document.body.scrollHeight)") work on this apple music playlist? That line of code works fine on every other website I visit.

I tried doing action.send_keys_to_element(driver.find_element(By.TAG_NAME, 'html'), Keys.END) to no avail.

How else could I scroll to the bottom of the page?

1 Answer 1

1

Try to use any interactable node like below:

driver.find_element(By.CLASS_NAME, 'play-button').send_keys(Keys.END)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.