title: Selenium webdriver: How do I find ALL of an element's attributes?
body: <p>In the Python Selenium module, once I have a <code>WebElement</code> object I can get the value of any of its attributes with <code>get_attribute()</code>:</p>
  
  <pre><code>foo = elem.get_attribute('href')
  </code></pre>
  
  <p>If the attribute named <code>'href'</code> doesn't exist, <code>None</code> is returned.</p>
  
  <p>My question is, how can I get a list of all of the attributes that an element has? There doesn't seem to be a <code>get_attributes()</code> or <code>get_attribute_names()</code> method.</p>
  
  <p>I'm using version 2.44.0 of the Selenium module for Python.</p>