Selenium Python SDK: Setup and Code Samples

Part of Testing Tools with Python SDKs · Full Selenium profile

This view shows the accepted facts for this property. Editorial guidance for it has not been approved yet, so the page is not indexed.

Overview

Selenium is an umbrella project encapsulating a variety of tools and libraries that enable and support the automation of web browsers.

SDK

SDK

Supported

Official · Java, Python, C#, Ruby, JavaScript

  • Java Official · Java · org.seleniumhq.selenium:selenium-java
  • Python Official · Python · selenium
  • C# Official · C# · Selenium.WebDriver
  • Ruby Official · Ruby · selenium-webdriver
  • JavaScript Official · JavaScript · selenium-webdriver

Verified 2026-09-26 [2]

Code samples

first-script-java Java Write your first Selenium script Not run
WebDriver driver = new ChromeDriver();
driver.get("https://www.selenium.dev/selenium/web/web-form.html");
driver.getTitle();
driver.manage().timeouts().implicitlyWait(Duration.ofMillis(500));
WebElement textBox = driver.findElement(By.name("my-text"));
WebElement submitButton = driver.findElement(By.cssSelector("button"));
textBox.sendKeys("Selenium");
submitButton.click();
WebElement message = driver.findElement(By.id("message"));
message.getText();
driver.quit();

Official docs

Limitations

  • No built-in test runner, assertion library, or reporting; users assemble their own stack.
  • Automates web browsers only; no native desktop or mobile app support in core WebDriver.
  • Discourages testing file downloads, HTTP response codes, third-party logins, and 2FA through the browser.

Pricing

Free

Models: FreeFree tier: AvailableTrial: Not applicable

Not yet verified

Other tools in Testing Tools with Python SDKs

Sources

  1. 1The Selenium Browser Automation Project | Selenium · Official docs · Selenium project · retrieved 2026-09-26

    Supports 94 claims, high confidence · verified 2026-09-26

    • Accessibility checks
    • API assertions
    • Audience
    • Audit logs
    • Authoring method
    • Auto-waiting
    • Automatic retries
    • Autonomous PR validation
    • Browser extension testing
    • Canvas testing
    • Certifications
    • CI execution
    • Code authoring
    • Company size
    • Configurable retention
    • Console logs
    • Cross-browser testing
    • Cross-platform testing
    • Customer data used for training
    • Dark and light mode testing
    • Data regions
    • Data residency
    • Database assertions
    • Debug artifacts
    • Deployment
    • Email testing
    • Execution model
    • Execution traces
    • Failure grouping
    • File download testing
    • File upload testing
    • GitHub
    • GitHub PR checks
    • Headed execution
    • Headless execution
    • iframe testing
    • Interactive debugging
    • Interfaces
    • Local execution
    • Maintenance approach
    • Max concurrency
    • Merge gating
    • Multi-tab testing
    • Native desktop testing
    • Native mobile testing
    • Natural language authoring
    • Network logs
    • Network mocking
    • Notification testing
    • OAuth testing
    • On-premises deployment
    • Parallel execution
    • Parameterized tests
    • PDF validation
    • Performance measurement
    • PR comments
    • PR-aware test selection
    • Preview deployment testing
    • Private network access
    • Private runners
    • Product kind
    • Product status
    • RBAC
    • Real device testing
    • Recorder
    • Reliability mechanisms
    • Replay
    • Reusable steps
    • Scheduled execution
    • SCIM
    • Screenshots
    • Secrets injection
    • Secrets management
    • Semantic visual assertions
    • Setup difficulty
    • Spelling and grammar checks
    • SSO (OIDC)
    • SSO (SAML)
    • Summary
    • Support channels
    • Support SLA
    • Targets
    • Test data generation
    • Test import
    • Test sharding
    • Testing types
    • Tool
    • Training opt-out
    • Use cases
    • Vendor
    • Video content validation
    • Video recording
    • Visual regression
    • VS Code extension

    The Selenium Browser Automation Project: Selenium is an umbrella project for a range of tools and libraries that enable and support the automation of web browsers.

    The Selenium Browser Automation Project: lets you write interchangeable code for all major web browsers

    The Selenium Browser Automation Project: Logging

    Grid: Want to run tests in parallel across multiple machines? Then, Grid is for you.

    The Selenium Browser Automation Project: implementations of the W3C WebDriver specification

    The Selenium Browser Automation Project: Want to run tests in parallel across multiple machines? Then, Grid is for you.

    The Selenium Browser Automation Project: Selenium is an umbrella project for a range of tools and libraries

    The Selenium Browser Automation Project: The Selenium Browser Automation Project

    The Selenium Browser Automation Project: Waits

    The Selenium Browser Automation Project: Documentation

    The Selenium Browser Automation Project: automation of web browsers

  2. 2Downloads | Selenium · Official website · Selenium project · retrieved 2026-09-26

    Supports 2 claims · Vendor documented, high confidence · verified 2026-09-26

    • Languages
    • SDK

    Downloads: Selenium Clients and WebDriver Language Bindings: .NET/C#, Ruby, Python, JavaScript, Java

  3. 3Grid | Selenium · Official docs · Selenium project · retrieved 2026-09-22

    Supports 1 claim · verified 2026-09-26

    • Parallel execution
  4. 4Write your first Selenium script | Selenium · Official docs · Selenium project · retrieved 2026-09-26

    Supports 1 claim · Vendor documented, high confidence · verified 2026-09-26

    • Code samples

    Write your first Selenium script: Write your first Selenium script

  5. 5Ecosystem | Selenium · Official website · Selenium project · retrieved 2026-09-26

    Supports 12 claims · Vendor documented, high confidence · verified 2026-09-26

    • Adapts to UI changes
    • AI executes the app
    • AI failure analysis
    • AI generates code only
    • AI test generation
    • Autonomous exploration
    • Integrations
    • MCP server
    • Selector-free execution
    • Self-healing
    • Uses AI
    • Vision-based interaction

    Ecosystem: Ecosystem

    Community implementation by Angie Jones.

    Selenium itself does not use AI, but there are community AI solutions built on top of it.

  6. 6GitHub - angiejones/mcp-selenium: An MCP implementation for Selenium WebDriver · GitHub · Official repository · Selenium project · retrieved 2026-09-25
  7. 7GitHub - SeleniumHQ/selenium: A browser automation framework and ecosystem. · GitHub · Official repository · Selenium project · retrieved 2026-09-26

    Supports 4 claims · Vendor documented, high confidence · verified 2026-09-26

    • License
    • License identifiers
    • Runner OS
    • Target OS

    GitHub - SeleniumHQ/selenium: Apache-2.0 license

    GitHub - SeleniumHQ/selenium: All Platforms: MacOS, Windows, Linux

  8. 8WebDriver | Selenium · Official docs · Selenium project · retrieved 2026-09-26

    Supports 3 claims, high confidence · verified 2026-09-26

    • Browser engines
    • Browsers
    • Device modes

    WebDriver: Browsers: Chrome, Edge, Firefox, Internet Explorer, Safari

  9. 9WebDriver BiDi | Selenium · Official docs · Selenium project · retrieved 2026-09-25

    Supports 3 claims · verified 2026-09-26

    • Console logs
    • Network logs
    • Network mocking
  10. 10Selenium · Official website · Selenium project · retrieved 2026-09-26

    Supports 4 claims · Vendor documented, high confidence · verified 2026-09-26

    • Free tier
    • Pricing
    • Pricing models
    • Trial

    Donate to Selenium