driver.findelement(by.xpath in python code example Example: find element by xpath selenium python driver.find_element_by_xpath("xpath")