Python和Selenium-未知錯(cuò)誤:在點(diǎn)(663,469)元素不可單擊其他元素將獲得點(diǎn)擊:
您可以使用action_chains模擬鼠標(biāo)移動(dòng)
actions = ActionChains(driver)actions.move_to_element(elementList[3]).perform()elementList[3].click()
編輯
該<a>標(biāo)簽是不實(shí)際的尺寸。嘗試
sizes = driver.find_elements_by_class_name(’size_defaut’)sizes[3].click()解決方法
我有此selenium代碼,應(yīng)單擊大小選擇按鈕。
submit_button = driver.find_element_by_class_name(’pro_sku’)elementList = submit_button.find_elements_by_tag_name('a')elementList[3].click()
它適用于其他頁(yè)面,但現(xiàn)在在一頁(yè)上出現(xiàn)此錯(cuò)誤:
selenium.common.exceptions.WebDriverException: Message: unknown error: Element is not clickable at point (663,469). Other element would receive the click:
我不明白,因?yàn)槲铱梢圆榭碨elenium打開(kāi)的瀏覽器窗口,并且通常可以單擊這些按鈕。
我該如何解決?
有人問(wèn)這個(gè)網(wǎng)站。它在這里:http : //de.sinobiologic.com/GM-CSF-CSF2-Protein-g-19491.html
