selenium - 带有 Inspect 元素的 Selenium 查找按钮
问题描述
查找按钮有问题。当我使用“查看源代码”时我找不到他,只有当我使用“检查元素”时才能看到它。硒查找>检查元素并单击按钮是否可行?
driver.find_element_by_xpath("//button[@class='butsys minwd']").click() selenium.common.exceptions.NoSuchElementException: 消息:没有这样的元素:无法找到元素:
解决方案
推荐阅读
- sql-server - 使用动态查询反透视
- r - (R) 优化错误 - 在定义函数时尝试应用非函数
- laravel - Laravel Web 应用程序中的 Firefox Web 浏览器?
- apache-kafka - 在 kafka 事件驱动的主干中保持服务同步
- ruby - 为什么就地修改 Ruby 字符串这么慢?
- c++ - 在 C++ 中使用库“xtensor-blas”时出错
- reactjs - 为什么 router.push 使用 next.js 重新加载/重新渲染页面?
- c# - 在 SQL Server 数据库中管理 SAAS 应用程序的用户
- vba - 从一个文档复制选定的文本并粘贴到页面上相同位置的新文档
- python - Python3 Tarfile: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position