Issue
In especially Python, after finding web elements, I don't actually know which attributes it has. So I can't work efficiently.
An example:
element = driver.find_element_by_class_name("someclass")
print(element.get_attrubite("class"))
InnerHTML, outerHTML, class, value are some of the attributes I know. Is there a list of all attributes that we can get?
Solution
In the question Selenium webdriver: How do I find ALL of an element's attributes? you can find what you are looking for.
It mentions using the command execute_script() along with your webdriver.
Answered By - JorgeHB
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.