Skip to main content

WebDriver Plus.

Project description

The most simple and powerful way to use Selenium with Python

WebDriver Plus is an extension to the Python bindings for Selenium WebDriver, which gives you a more concise and expressive API.

It helps you to quickly write readable, robust tests.

What’s so great about WebDriver Plus?

  • Browser instances that support pooling and automatic quit on exit.
  • A concise API for finding elements, and a wide range of selectors.
  • JQuery-style traversal and filtering for locating elements without using complex xpath expressions.
  • Perform actions on elements without having to use ActionChains.
  • Element highlighting makes working from the Python console a joy.

Note: If you’re interested in helping maintain WebDriver Plus in the long term please get in touch. Most of the author’s open source time is currently devoted to working on Django REST framework.

Getting started

Install webdriverplus using pip.

pip install webdriverplus

Now fire up your Python console…

>>> from webdriverplus import WebDriver
>>> browser = WebDriver().get('')

Ok, let’s do a search.

>>> browser.find(name='q').send_keys('selenium\n')

Now let’s get the headings for all the search results.

>>> browser.find(id='search').find('h3')
  <h3 class="r"><a href="" class="l" onmousedown="retur...
  <h3 class="r"><a href=";rct=j&amp;q=sel...
  <h3 class="r"><a href="" class="l" onm...
  <h3 class="r"><a href="
  <h3 class="r"><a href="" class="l"...
  <h3 class="r"><a href="
  <h3 class="r"><a href="" class...
  <h3 class="r"><a href=";tname...
  <h3 class="r"><a href="" class=...
  <h3 class="r"><a href="/search?q=selenium&amp;hl=en&amp;biw=940&amp;bih=938...
  <h3 class="r"><a href="

Notice that WebDriver Plus has highlighted the selected elements for you, which is super helpful for when you’re writing tests and trying to make sure you’re selecting the correct elements:

Next steps

When you’re ready to get going, head over to the full documentation (

If you want to help contribute to the project, please read the contribution notes (

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for webdriverplus, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size webdriverplus-0.1.5.tar.gz (12.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page