【发布时间】:2016-10-19 03:22:39
【问题描述】:
我尝试用 Selenium 抓取这个 site。
我想点击“下一页”按钮,为此我这样做:
driver.find_element_by_class_name('pagination-r').click()
它适用于许多页面,但不适用于所有页面,我收到此错误
WebDriverException: Message: Element is not clickable at point (918, 13). Other element would receive the click: <div class="linkAuchan"></div>
总是为this page
我试过了
driver.implicitly_wait(10)
el = driver.find_element_by_class_name('pagination-r')
action = webdriver.common.action_chains.ActionChains(driver)
action.move_to_element_with_offset(el, 918, 13)
action.click()
action.perform()
但我遇到了同样的错误
【问题讨论】:
-
当我转到该页面时,没有类名称为
pagination-r或linkAuchan的元素。我猜页面已经改变了?
标签: python selenium selenium-webdriver web-scraping selenium-firefoxdriver