【发布时间】:2023-03-24 00:13:01
【问题描述】:
我正在尝试查找元素 from this,它是一个按钮,但我无法找到该元素。我尝试通过class_name、xpath、id 进行查找,但似乎没有一个可以显示
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element:
<button class="dates_head commo_btn">
<!-- react-text: 175 -->
09
<!-- /react-text -->
<!-- react-text: 176 -->
<!-- /react-text -->
<!-- react-text: 177 -->
MON
<!-- /react-text -->
</button>
xpath 值应该是唯一的,但仍然无法找到元素
我在 Fedora 29 上使用 Python 3.7.2、selenium 3.141.0、chromedriver 2.40 任何有关如何解决此问题的帮助将不胜感激。谢谢你。
【问题讨论】:
标签: python python-3.x selenium webdriver selenium-chromedriver