【发布时间】:2021-07-06 16:39:57
【问题描述】:
<button class="in chlodIng" onclick="Attendance.Dashboard.WeeklyData.updateCheckOut(true)">
driver.find_element_by_class_name('out chlodIng').click()
按钮应该被点击,但出现错误:
selenium.common.exceptions.NoSuchElementException: 消息:没有这样的元素:无法找到元素:{"method":"css selector","selector":".out chlodIng"}
请让我知道如何以正确的方式进行操作。提前致谢
【问题讨论】:
-
我在图片上没有看到与
'out chlodIng'类名匹配的元素
标签: python python-3.x selenium selenium-webdriver onclick