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 details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Egg

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

Uploaded Python 3

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

Uploaded Egg

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

Uploaded Python 2

File details

Details for the file pytest-seleniumbase-0.2.0.tar.gz.

File metadata

  • Download URL: pytest-seleniumbase-0.2.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pytest-seleniumbase-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d32fc4ec085ef8cc813efa17ae9444b27894533cff142f942a87144af446a859
MD5 6673111210a799c054028d6ab5aefc88
BLAKE2b-256 d81ab9ca3703dab1669154a63a9d88fce4c81fcaef1fd29eb894dd7e086cebc0

See more details on using hashes here.

File details

Details for the file pytest_seleniumbase-0.2.0-py3.7.egg.

File metadata

  • Download URL: pytest_seleniumbase-0.2.0-py3.7.egg
  • Upload date:
  • Size: 2.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pytest_seleniumbase-0.2.0-py3.7.egg
Algorithm Hash digest
SHA256 9137dbbf487cdf7150dea3229ba4f7fb6de5b01e1092749d1f977cd8b4950177
MD5 17a33f6d9aac3c24e687f940bcabcc75
BLAKE2b-256 acc09fb817e8a83fcfc84b685924ba9582672f368122bacfd224ffaa715dc9e0

See more details on using hashes here.

File details

Details for the file pytest_seleniumbase-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_seleniumbase-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pytest_seleniumbase-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6d7abb03a922eeae5e49574f1c00e0f18e7f778cfa68eb3a8d334f5ab99469c
MD5 6616a4bc358f857849282bdf847ecfd4
BLAKE2b-256 d2d0e075c8d489ed1773389b3fcce5d9a879a9a32f37ca0a6cc9074d5727afd7

See more details on using hashes here.

File details

Details for the file pytest_seleniumbase-0.2.0-py2.7.egg.

File metadata

  • Download URL: pytest_seleniumbase-0.2.0-py2.7.egg
  • Upload date:
  • Size: 2.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pytest_seleniumbase-0.2.0-py2.7.egg
Algorithm Hash digest
SHA256 9ded5ad52b93a1093cad005b60b373bce8ec4ab1b68c39b0a985c203c87e6de5
MD5 bf96156824bf6c519854b9fd62953535
BLAKE2b-256 87cd5311c646f070ccda8db9cb3a40176bdcbb269993a3f464fa2ededa2f76f9

See more details on using hashes here.

File details

Details for the file pytest_seleniumbase-0.2.0-py2-none-any.whl.

File metadata

  • Download URL: pytest_seleniumbase-0.2.0-py2-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pytest_seleniumbase-0.2.0-py2-none-any.whl
Algorithm Hash digest
SHA256 b3d5c0906459c3958fe878b2c1c1ac9d753215923877dafe09c8f456d069c45d
MD5 774ef48482a95a4bbddc6de0ad014aac
BLAKE2b-256 1f5e693d818017c557af55e40b763f43ec34b6075058bd7254b51fc567d8b942

See more details on using hashes here.

Supported by

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