Is there a way to find an element by attributes in Python Selenium?

You can get it by xpath and check the node-type attribute value:

driver.find_element_by_xpath('//input[@node-type="searchInput"]')

Leave a Comment