title: Is there a way to find an element by attributes in Python Selenium?
body: <p>I got a html snippet like this:</p>
  
  <pre><code>&lt;input type="text" node-type="searchInput" autocomplete="off" value="" class="W_input" name="14235541231062"&gt;
  </code></pre>
  
  <p>The only unique identity of this element in the html is the attribute <code>node-type="searchInput"</code>,so I want to locate it by using <em>some method</em> of Python selenium sort of like this:</p>
  
  <pre><code>search_elem = driver.find_element_by_xxx("node-type","searchInput") # maybe?
  </code></pre>
  
  <p>I have checked the selenium(python) <a href="http://selenium-python.readthedocs.org/en/latest/locating-elements.html" rel="noreferrer">document for locating elems</a>  but didn't get a clue of how to locate this elem by the <code>node-type</code> attr. Is there a explicit way to locate this elem in python selenium?</p>