Skip to main content

Reliable Browser Automation & Testing Framework

Project description

pypi is a proxy for pypi


Build Status Join the Gitter Chat MIT License GitHub Stars

Reliable Browser Automation & Testing with Selenium-WebDriver and Pytest.


(Above: my_first_test.py from examples/ running in demo mode, which adds JavaScript for highlighting page actions.)

pytest my_first_test.py --demo_mode

Quick Start:

(Requires Python/Pip Python versions. Optionally, you may want to use a Python virtual environment to isolate Python dependencies between projects.)

Git clone and install SeleniumBase:

git clone https://github.com/seleniumbase/SeleniumBase.git
cd SeleniumBase
pip install -e .

You can also install SeleniumBase from PyPI:

pip install seleniumbase

OR

pip install pytest-seleniumbase
  • (Add --upgrade to get the latest packages and --force-reinstall with --no-cache-dir to force a reinstall without using the existing cache.)

You can also install a specific GitHub branch of SeleniumBase:

pip install -e git+https://github.com/seleniumbase/SeleniumBase.git@master#egg=seleniumbase

Download a web driver:

SeleniumBase can download a web driver to the seleniumbase/drivers folder with the install command:

seleniumbase install chromedriver
  • (You need a different web driver for each web browser you want to run automation on: chromedriver for Chrome, edgedriver for Edge, geckodriver for Firefox, operadriver for Opera, and iedriver for Internet Explorer.)

Run a test on Chrome:

cd examples
pytest my_first_test.py --browser=chrome
  • (Chrome is the default browser if not specified with --browser)

Check out my_first_test.py to see what a simple test looks like:

  • (By default, CSS Selectors are used for finding page elements.)

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

pytest-seleniumbase-0.2.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distributions

pytest_seleniumbase-0.2.0-py3.7.egg (2.6 kB view hashes)

Uploaded Source

pytest_seleniumbase-0.2.0-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

pytest_seleniumbase-0.2.0-py2.7.egg (2.6 kB view hashes)

Uploaded Source

pytest_seleniumbase-0.2.0-py2-none-any.whl (2.8 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page