【发布时间】:2021-07-27 08:29:12
【问题描述】:
我正在尝试使用 Selenium 和 Python 使用这行代码在网页上选择一个复选框
self.driver.find_element_by_id('lg_1166').click()
但收到此错误消息
Message: Element <input id="lg_1699" name="lg_1699" type="checkbox"> is not clickable at point (284,888) because another element <div class="col-12 text-center"> obscures it
然后,当我检查同一网页以查找 <div class="col-12 text-center"> 时,没有匹配的 HTML。
我不熟悉 Selenium 中的 waits,想知道是否有人可以帮助我解决此问题。
谢谢!
【问题讨论】:
-
添加页面html代码
-
请添加网站链接。
-
请不要使用图像作为代码,并提供相关代码块向我们展示您尝试过的操作。
标签: html python-3.x selenium firefox selenium-firefoxdriver