All the Python Selenium methods you reach for, at a glance, grouped by module. Updated for Selenium 4; every name in these tables is checked against the latest Selenium release in CI, so the docs fail loudly when Selenium changes.
pip install seleniumfrom selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Chrome() # Selenium Manager downloads a matching driver
driver.get("https://example.com")
print(driver.find_element(By.TAG_NAME, "h1").text)
driver.quit()Selenium 4.6 and later find or download the browser driver for you, so there
is no executable_path and no separate driver download.
pip install -U selenium
python tools/check_methods.pyFeedback and pull requests are welcome.