In Selenium 4, call driver.find_element(By.X, “value”) for the first match and find_elements for a list. By.CSS_SELECTOR and By.XPATH cover almost everything; XPath also finds by text. We ran every locator on one page through a mobile proxy and print what each returned.
Selenium find_element in Python: Every By
calendar_today
November 20, 2026
domain
quanticdata-io