Reliable Browser Automation & Testing Framework
Project description
SeleniumBase is on Github
(pytest-seleniumbase
is a proxy for seleniumbase
)
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
- (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, andiedriver
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
Built Distributions
Hashes for pytest-seleniumbase-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61ab8dd586d3b44eeeef3d02c554126351ede8c209184b85cc27b2dc0500bf45 |
|
MD5 | deb6bc9b668dfe3a46c65adc484b77c6 |
|
BLAKE2b-256 | 228073e7d3e91d39c96c76d8a11a43355ca5ea91667c4ea2821bd2c4052cce1c |
Hashes for pytest_seleniumbase-0.1.2-py3.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0435b5802c9126f7fa0bd132ccc926ee2f9b48d24798704375214cc5f464c9f |
|
MD5 | 598b956870423b7a1092b1b2d8719c5c |
|
BLAKE2b-256 | 3d5d3a34f372b22dfa8a04fb74b90d607a4af60e53cb996bd84e29712d730527 |
Hashes for pytest_seleniumbase-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acd16a6c26d04c974a06ab308c62958a744b2677864db4f54201434a3a2bff89 |
|
MD5 | 5be91c0a2008a0d11e5555d0ffb5beb5 |
|
BLAKE2b-256 | fc2b31625ed3ae8516952f70d5cfa02c0b7b28d6561dc7e9e09ea8ca45bab227 |
Hashes for pytest_seleniumbase-0.1.2-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | aae20d4dfed2a14be212206344e0429f5eef595e7bbe6134d8453da605ced022 |
|
MD5 | 47734f69144588592f81e8fdf5880fc1 |
|
BLAKE2b-256 | df157139c745013d18ebc62bd0628d4a556aa703fad3b3068a647d7f6901ccd2 |
Hashes for pytest_seleniumbase-0.1.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc0835cb9195ccd12c4d51379f2bf7b3606f2a7b52f15626aa983960f912a6bf |
|
MD5 | a69c4bd7fb451a9c1527da5c6a7d74c2 |
|
BLAKE2b-256 | 65b55b007148de66ce8a365b41ac92a6186c8941aec09a7917aca3b2caa1475b |