Find an element and return the value of an attribute. If the element doesn't exist: Raises an exception. If the attribute doesn't exist: Returns None.
(self, selector, attribute)
| 1691 | return value |
| 1692 | |
| 1693 | def get_attribute(self, selector, attribute): |
| 1694 | """Find an element and return the value of an attribute. |
| 1695 | If the element doesn't exist: Raises an exception. |
| 1696 | If the attribute doesn't exist: Returns None.""" |
| 1697 | return self.find_element(selector).get_attribute(attribute) |
| 1698 | |
| 1699 | def get_element_html(self, selector): |
| 1700 | """Find an element and return the outerHTML.""" |