I got a html snippet like this:
<input type="text" node-type="searchInput" autocomplete="off" value="" class="W_input" name="14235541231062">
The only unique identity of this element in the html is the attribute node-type="searchInput"
, so I want to locate it by using some method of Python selenium sort of like this:
search_elem = driver.find_element_by_xxx("node-type","searchInput") # maybe?
I have checked the selenium (python) document for locating elems but didn't get a clue of how to locate this elem by the node-type
attr. Is there a explicit way to locate this elem in python selenium?