talira

Selenium

Automate any browser, from any language.

open sourceApache-2.0self-hostablefree

Selenium is an umbrella project for browser automation built on the W3C WebDriver standard. Selenium WebDriver gives Java, Python, C#, Ruby and JavaScript (and Kotlin, through the Java bindings) one API to control Chrome, Firefox, Edge, Safari and Internet Explorer the way a user would, and Selenium Manager, a Rust command-line tool, downloads the right browser drivers by default. Selenium Grid distributes sessions across machines, browsers and operating systems to run tests in parallel, with Docker images and a Helm chart, and Selenium IDE is a desktop app that records and plays back browser actions. It began at ThoughtWorks in 2004 and is a member project of the Software Freedom Conservancy.

Ways to install

Package managers

Problems it solves

  • automate Chrome, Firefox, Edge and Safari from test code the way a user would click and type
  • write end-to-end browser tests in Java, Python, C#, Ruby or JavaScript with the same API
  • run our browser tests in parallel across many machines, browsers and operating systems
  • record a browser session by clicking through it and play it back as a test, without writing code
  • stop downloading and updating chromedriver by hand every time Chrome updates
  • regression-test a web app's login and forms in a real browser
  • a standards-based browser automation API that the browser vendors implement themselves
  • run headless browsers in Docker or Kubernetes for CI test runs
  • test that our website works in Safari and Edge, not only Chrome
  • capture browser console logs and network events while an automated test runs
  • script a real browser from Python to automate a repetitive web task
  • host our own browser testing grid instead of paying for a cloud one
  • drive Internet Explorer for legacy enterprise web app tests

Features

  • W3C WebDriver bindings for Java, Python, C#, Ruby and JavaScript (Kotlin through Java)
  • Chrome, Firefox, Edge, Safari and Internet Explorer support
  • Selenium Manager: automatic browser and driver management, written in Rust
  • WebDriver BiDi and Chrome DevTools features: logging, network and script
  • Selenium Grid: hub, nodes and standalone mode for parallel sessions
  • official Docker images and a Helm chart for Kubernetes
  • Selenium IDE: record and playback desktop app for Windows, macOS and Linux

Limitations

  • Not suited to performance or load testing: its docs advise dedicated tools such as JMeter2

Capabilities

Has an APIplan not known
Has a command line toolplan not known

Alternatives

The same job

These do what Selenium does.

  1. Playwright Fast and reliable end-to-end testing for modern web apps
  2. SeleniumBase Python browser automation for testing, scraping and stealth
  3. WebdriverIO Open source test automation for web, mobile and desktop apps
  4. Cypress AI writes the code. Cypress proves it works.
  5. Puppeteer JavaScript API for Chrome and Firefox
  6. BrowserStack Everything you need for testing, with AI at every step

Compare Selenium with the top 3