python - 如何为这个硒的 HTML 代码找到一个元素?
解决方案
要定位元素,您可以使用以下任一Locator Strategies:
使用
css_selector
:input.ant-input.ant-input-lg[placeholder='Enter aquestion']
使用
xpath
://input[@class='ant-input ant-input-lg' and @placeholder='Enter aquestion']
推荐阅读
- java - IntelliJ 将 Gradle 依赖项与不同的项目混淆 - 仍然有效
- reactjs - 测试时未定义 INITIAL_STATE
- r - .local(x, ...) 中的错误:file.exists(extension(x, ".shp")) 不是 TRUE
- python - smtlib 邮件不发送且无错误代码
- javascript - 如何使用 chrome 扩展在 iframe 或页面中打开当前网站的控制台日志
- kubernetes - 如何解决在 k8s 上运行的 fabric peer 的高内存使用率?
- haskell - 有没有更简单的方法来编写这个函数并且只使用 Haskell 的前奏?
- azure-machine-learning-studio - 无法将训练作业安排到 Azure 机器学习 AKS 群集
- android - Google Pay - Stripe 出现错误 Google Pay 失败并出现错误:412:
- blazor - Blazor 如何使用 onClick 事件发出事件