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('http://www.google.com')
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')
WebElementSet(
<h3 class="r"><a href="http://seleniumhq.org/" class="l" onmousedown="retur...
<h3 class="r"><a href="http://www.google.co.uk/url?sa=t&rct=j&q=sel...
<h3 class="r"><a href="http://en.wikipedia.org/wiki/Selenium" class="l" onm...
<h3 class="r"><a href="http://en.wikipedia.org/wiki/Selenium_%28software%29...
<h3 class="r"><a href="http://ods.od.nih.gov/factsheets/selenium" class="l"...
<h3 class="r"><a href="http://www.nlm.nih.gov/medlineplus/druginfo/natural/...
<h3 class="r"><a href="http://www.hollandandbarrett.com/selenium-050" class...
<h3 class="r"><a href="http://www.whfoods.com/genpage.php?dbid=95&tname...
<h3 class="r"><a href="http://www.patient.co.uk/doctor/Selenium.htm" class=...
<h3 class="r"><a href="/search?q=selenium&hl=en&biw=940&bih=938...
<h3 class="r"><a href="http://www.umm.edu/altmed/articles/selenium-000325.h...
)
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 (http://webdriver-plus.readthedocs.org/).
If you want to help contribute to the project, please read the contribution notes (http://webdriver-plus.readthedocs.org/en/latest/topics/contributing.html)
Metadata
Release files for webdriverplus 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| webdriverplus-0.1.5.tar.gz | 12.9 kB | Without provenance | Details for webdriverplus-0.1.5.tar.gz |
Release files / webdriverplus-0.1.5.tar.gz
| Download URL | webdriverplus-0.1.5.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ea27491a7be23239264423ee1291dedd2bba012c6997a1e751783f6e2794a69
|
|
BLAKE2b-256 checksum How to use checksums |
c9c779bd5ac0d8da44423649bc59561491579b5cf418f21459ea524492a98ff4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for webdriverplus 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.