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?
尝试使用任何可交互的节点,如下所示:
driver.find_element(By.CLASS_NAME, 'play-button').send_keys(Keys.END)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.