您的位置:首页技术文章
文章详情页

Python和Selenium-未知错误:在点(663,469)元素不可单击其他元素将获得点击:

【字号: 日期:2022-08-07 15:59:50浏览:4作者:猪猪
(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 编程