【发布时间】:2016-09-17 10:08:30
【问题描述】:
我正在尝试滚动浏览this 页面。 向下滚动到页面底部后,我需要单击“显示更多”按钮,但我无法使用 selenium 找到它。
self.driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")
self.driver.find_element_by_class_name('button load-more-button').click()
但我收到了InvalidSelectorException
【问题讨论】:
标签: python css selenium selenium-webdriver web-scraping