Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium get_attribute

The docs speak's http://selenium-python.readthedocs.org/api.html to me:

get_attribute(name) Args: name - Name of the attribute/property to retrieve.

Some of the args I know are textContent, innerHTML, outerHTML, href. Where can I find a list of the supported args?

like image 995
vbd Avatar asked Oct 31 '22 07:10

vbd


1 Answers

Each HTML tag may have different attributes. You can see list of attributes of each tag from http://www.w3schools.com/tags/default.asp then go to each tag. Moreover, you can define custom attribute for any tags e.g. <a custom-att="my customer value">Test</a>.

like image 109
Buaban Avatar answered Nov 15 '22 05:11

Buaban