您的位置:首頁技術文章
文章詳情頁

Python和Selenium-未知錯誤:在點(663,469)元素不可單擊其他元素將獲得點擊:

瀏覽:6日期:2022-08-07 15:59:50
(adsbygoogle = window.adsbygoogle || []).push({}); 如何解決Python和Selenium-未知錯誤:在點(663,469)元素不可單擊其他元素將獲得點擊:?

您可以使用action_chains模擬鼠標移動

actions = ActionChains(driver)actions.move_to_element(elementList[3]).perform()elementList[3].click()

編輯

該<a>標簽是不實際的尺寸。嘗試

sizes = driver.find_elements_by_class_name(’size_defaut’)sizes[3].click()解決方法

我有此selenium代碼,應單擊大小選擇按鈕。

submit_button = driver.find_element_by_class_name(’pro_sku’)elementList = submit_button.find_elements_by_tag_name('a')elementList[3].click()

它適用于其他頁面,但現在在一頁上出現此錯誤:

selenium.common.exceptions.WebDriverException: Message: unknown error: Element is not clickable at point (663,469). Other element would receive the click:

我不明白,因為我可以查看Selenium打開的瀏覽器窗口,并且通常可以單擊這些按鈕。

我該如何解決?

有人問這個網站。它在這里:http : //de.sinobiologic.com/GM-CSF-CSF2-Protein-g-19491.html

標簽: Python 編程
国产综合久久一区二区三区