Pythie
CategoriesTrending
An open index of Python tools.Pythie’s IndexLegal noticePrivacyData: PyPI (package metadata; download statistics under CC BY 4.0, via ClickHouse), deps.dev (CC BY 4.0), GitHub, OSV.

selenium

4.54.0ActivePythie’s Index: 81

Official Python bindings for Selenium WebDriver

Actively maintained. Last release 6 days ago, commits in 26 of the last 26 weeks. A safe choice.

Web Scraping & AutomationTesting
$pip install selenium
seleniumhq/seleniumHomepagePyPI
====================== Selenium Client Driver ====================== Introduction ============ Python language bindings for Selenium WebDriver. The `selenium` package is used to automate web browser interaction from Python. +-------------------+--------------------------------------------------------+ | **Home**: | https://selenium.dev | +-------------------+--------------------------------------------------------+ | **GitHub**: | https://github.com/SeleniumHQ/Selenium | +-------------------+--------------------------------------------------------+ | **PyPI**: | https://pypi.org/project/selenium | +-------------------+--------------------------------------------------------+ | **IRC/Slack**: | https://selenium.dev/support/#ChatRoom | +-------------------+--------------------------------------------------------+ | **Docs**: | https://selenium.dev/selenium/docs/api/py | +-------------------+--------------------------------------------------------+ | **API Reference**:| https://selenium.dev/selenium/docs/api/py/api.html | +-------------------+--------------------------------------------------------+ Updated documentation published with each commit is available at: `readthedocs.io <https://selenium-python-api-docs.readthedocs.io/en/latest>`_ ---- Supported Python Versions ========================= * Python 3.10+ Supported Browsers ================== Several browsers are supported, as well as the Remote protocol: * Chrome * Edge * Firefox * Safari * WebKitGTK * WPEWebKit Installing ========== Install or upgrade the Python bindings with `pip <https://pip.pypa.io/>`_. Latest official release:: pip install -U selenium Nightly development release:: pip install -U --pre --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ selenium Note: you should consider using a `virtual environment <https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments>`_ to create an isolated Python environment for installation. Drivers ======= Selenium requires a driver to interface with the chosen browser (chromedriver, edgedriver, geckodriver, etc). In older versions of Selenium, it was necessary to install and manage these drivers yourself. You had to make sure the driver executable was available on your system `PATH`, or specified explicitly in code. Modern versions of Selenium handle browser and driver installation for you with `Selenium Manager <https://selenium.dev/documentation/selenium_manager>`_. You generally don't have to worry about driver installation or configuration now that it's done for you when you instantiate a WebDriver. Selenium Manager works with most supported platforms and browsers. If it doesn't meet your needs, you can still install and specify browsers and drivers yourself. Links to some of the more popular browser drivers: +--------------+-----------------------------------------------------------------------+ | **Chrome**: | https://developer.chrome.com/docs/chromedriver | +--------------+-----------------------------------------------------------------------+ | **Edge**: | https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver | +--------------+-----------------------------------------------------------------------+ | **Firefox**: | https://github.com/mozilla/geckodriver | +--------------+-----------------------------------------------------------------------+ | **Safari**: | https://webkit.org/blog/6900/webdriver-support-in-safari-10 | +--------------+-----------------------------------------------------------------------+ Example 0: ========== * launch a new Chrome browser * load a web page * close the browser .. code-block:: python from selenium import webdriver driver = webdriver.Chrome() driver.get("https://selenium.dev") driver.quit() Example 1: ========== * launch a new Chrome browser * load the Selenium documentation page * find the "WebDriver" link * click the "WebDriver" link * close the browser .. code-block:: python from selenium import webdriver from selenium.webdriver.common.by import By driver = webdriver.Chrome() driver.get("https://selenium.dev/documentation") assert "Selenium" in driver.title elem = driver.find_element(By.ID, "m-documentationwebdriver") elem.click() assert "WebDriver" in driver.title driver.quit() Example 2: ========== Selenium WebDriver is often used as a basis for testing web applications. Here is an example using Python's standard `unittest <https://docs.python.org/3/library/unittest.html>`_ framework: .. code-block:: python import unittest from selenium import webdriver class SeleniumTestCase(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome() self.addCleanup(self.driver.quit) def test_page_title(self): self.driver.get("https://selenium.dev") self.assertIn("Selenium", self.driver.title) Example 3: ========== Here is an example using `pytest <https://pytest.org>`_ framework: .. code-block:: python import pytest from selenium import webdriver @pytest.fixture def driver(): driver = webdriver.Chrome() yield driver driver.quit() def test_page_title(driver): driver.get("https://selenium.dev") assert "Selenium" in driver.title Selenium Grid (optional) ======================== For local Selenium scripts, the Java server is not needed. To use Selenium remotely, you need to also run a Selenium Grid. For information on running Selenium Grid: https://selenium.dev/documentation/grid/getting_started/ To use Remote WebDriver see: https://selenium.dev/documentation/webdriver/drivers/remote_webdriver/?tab=python Use The Source Luke! ==================== View source code online: +---------------+-------------------------------------------------------+ | **Official**: | https://github.com/SeleniumHQ/selenium/tree/trunk/py | +---------------+-------------------------------------------------------+

Popularity

Downloads / month
28.8M
GitHub stars
34.6K
Downloads, last 7 days
6.1M-6%
Stars, last 7 days
–
Direct dependents
3.1K
All dependents
3.7K

Pythie’s Index

How it works
81

Healthy

Maintenance, out of 100

  • Recent release

    last release 5 days ago

  • Commit activity

    26/26 weeks with commits

  • Release cadence

    16 releases in 12 months

  • Issues & PRs handled

    59% closed in the past year

  • Contributor spread

    8 authors in last 100 commits

  • OpenSSF Scorecard

    2.6/10

Commits, last 26 weeks1023

Releases

Latest
4.54.0
Released
Nov 23, 2026
Releases, 12 months
16
First release
Apr 25, 2008

Compatibility

Requires Python
>=3.10
Tested on
3.10 · 3.11 · 3.12 · 3.13 · 3.14 · 3.15
License
Apache-2.0 (Permissive)

Keywords

seleniumwebdriverjavarubypythonjavascriptdotnetrust

Alternatives

Use instead of selenium: tools that do the same job, closest first.

Compare with nodriver →Compare with zendriver →Compare with DrissionPage →Compare all 4 →

  • nodriver0.50.99ActivePythie’s Index: 54

    [Docs here](https://ultrafunkamsterdam.github.io/nodriver)

    Web Scraping & AutomationSecurity & Auth5K374.8K/moReleased Oct 26, 2026
  • zendriver0.18.0ActivePythie’s Index: 84

    A blazing fast, async-first, undetectable webscraping/web automation framework

    Web Scraping & AutomationAsync & Concurrency–302.8K/moReleased Nov 21, 2026
  • DrissionPage4.1.1.4ActivePythie’s Index: 77

    Python based web automation tool. It can control the browser and send and receive data packets.

    Web Scraping & AutomationHTTP & Networking–169.9K/moReleased Aug 20, 2026
  • arsenic21.8InactivePythie’s Index: 20

    Asynchronous WebDriver client

    TestingWeb Scraping & Automation3582.6M/moReleased Aug 23, 2021
  • playwright1.65.2ActivePythie’s Index: 89

    A high-level API to automate web browsers

    Web Scraping & AutomationTesting15.1K141.5M/moReleased Nov 14, 2026
  • patchright1.64.4ActivePythie’s Index: 85

    Undetected Python version of the Playwright testing and automation library.

    Web Scraping & AutomationTesting1.6K5.2M/moReleased Nov 2, 2026

Works well with

Use together with selenium: extensions, drivers, servers and companion tools.

  • undetected-chromedriverPythie’s Index: 20('Selenium.webdriver.Chrome replacement with compatiblity for Brave, and other Chromium based browsers.', 'Not triggered by CloudFlare/Imperva/hCaptcha and such.', 'NOTE: results may vary due to many factors. No guarantees are given, except for ongoing efforts in understanding detection algorithms.')2.7M downloads/mo
  • webdriver-managerPythie’s Index: 59Library provides the way to automatically manage drivers for different browsers6.2M downloads/mo
  • robotframework-seleniumlibraryPythie’s Index: 44Web testing library for Robot Framework1.1M downloads/mo
  • selenium-wirePythie’s Index: 3Extends Selenium to give you the ability to inspect requests made by the browser.586.6K downloads/mo
  • seleniumbasePythie’s Index: 84SeleniumBase is a framework for web crawling, scraping, and testing. Supports pytest. CDP Mode adds stealth. Includes many tools.1M downloads/mo
  • Appium-Python-ClientPythie’s Index: 93Python client for Appium5.9M downloads/mo