首页 > 解决方案 > 带有 Inspect 元素的 Selenium 查找按钮

问题描述

查找按钮有问题。当我使用“查看源代码”时我找不到他,只有当我使用“检查元素”时才能看到它。硒查找>检查元素并单击按钮是否可行?

driver.find_element_by_xpath("//button[@class='butsys minwd']").click() selenium.common.exceptions.NoSuchElementException: 消息:没有这样的元素:无法找到元素:

标签: seleniumselenium-webdriverselenium-chromedriver

解决方案


推荐阅读