python - Selenium get_attribute

标签 python selenium

文档讲述了 http://selenium-python.readthedocs.org/api.html对我来说:

get_attribute(名称) 参数: name - 要检索的属性/属性的名称。

我知道的一些参数是 textContent、innerHTML、outerHTML、href。在哪里可以找到支持的参数列表?

最佳答案

每个 HTML 标签可能有不同的属性。您可以从 http://www.w3schools.com/tags/default.asp 查看每个标签的属性列表然后转到每个标签。此外,您可以为任何标签定义自定义属性,例如<a custom-att="my customer value">Test</a> .

关于python - Selenium get_attribute,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36137585/

相关文章:

python - Keras:输入层并正确传递输入数据

python - 如何在给定条件下生成所有可能的组合以使其更有效?

python - 如何解决导入 tkinter 模块的问题

python - 使用 headless Chrome 通过 Python 为 Selenium 禁用代理

r - 改进 RSelenium 循环,减少导航到页面的时间

python - 如何在 Altair 中正确地将区域图中的基线移动到特定的 y 位置并相应地更改填充颜色?

java - 我无法使用 IEDriver 在 IE11 Windows 10 中找到 xpath

javascript - 如何在 NodeJS Selenium 中使用代理?

Python Splinter 单击表条件中的链接

python - AWS Lambda : Calling the invoke API action failed with this message: Network Error