文档对我说http://selenium-python.readthedocs.org/api.html:
get_attribute(name) Args: name - 要检索的属性/属性的名称。
我知道的一些参数是 textContent、innerHTML、outerHTML、href。我在哪里可以找到支持的参数列表?
每个 HTML 标签可能有不同的属性。您可以从http://www.w3schools.com/tags/default.asp查看每个标签的属性列表,然后转到每个标签。此外,您可以为任何标签定义自定义属性,例如<a custom-att="my customer value">Test</a>。
| 归档时间: |
|
| 查看次数: |
10117 次 |
| 最近记录: |