Reliable Browser Automation & Testing Framework
Project description
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 . 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
--upgradeto get the latest packages and--force-reinstallwith--no-cache-dirto 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:
chromedriverfor Chrome,edgedriverfor Edge,geckodriverfor Firefox,operadriverfor Opera, andiedriverfor 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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d32fc4ec085ef8cc813efa17ae9444b27894533cff142f942a87144af446a859
|
|
| MD5 |
6673111210a799c054028d6ab5aefc88
|
|
| BLAKE2b-256 |
d81ab9ca3703dab1669154a63a9d88fce4c81fcaef1fd29eb894dd7e086cebc0
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9137dbbf487cdf7150dea3229ba4f7fb6de5b01e1092749d1f977cd8b4950177
|
|
| MD5 |
17a33f6d9aac3c24e687f940bcabcc75
|
|
| BLAKE2b-256 |
acc09fb817e8a83fcfc84b685924ba9582672f368122bacfd224ffaa715dc9e0
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6d7abb03a922eeae5e49574f1c00e0f18e7f778cfa68eb3a8d334f5ab99469c
|
|
| MD5 |
6616a4bc358f857849282bdf847ecfd4
|
|
| BLAKE2b-256 |
d2d0e075c8d489ed1773389b3fcce5d9a879a9a32f37ca0a6cc9074d5727afd7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ded5ad52b93a1093cad005b60b373bce8ec4ab1b68c39b0a985c203c87e6de5
|
|
| MD5 |
bf96156824bf6c519854b9fd62953535
|
|
| BLAKE2b-256 |
87cd5311c646f070ccda8db9cb3a40176bdcbb269993a3f464fa2ededa2f76f9
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3d5c0906459c3958fe878b2c1c1ac9d753215923877dafe09c8f456d069c45d
|
|
| MD5 |
774ef48482a95a4bbddc6de0ad014aac
|
|
| BLAKE2b-256 |
1f5e693d818017c557af55e40b763f43ec34b6075058bd7254b51fc567d8b942
|