No project description provided
Project description
AutoParaSelenium
A library to make parallel selenium tests that automatically download and setup webdrivers
This is a WIP
Usage
Installation
pip install autoparaselenium
Code
The API is very simple
from autoparaselenium import configure, chrome, firefox, run_on, all_, Extension
# All parameters are optional, but still call it once before everything
configure(
extensions=[
Extension(chrome="path to chrome extension to install"),
Extension(firefox="path to firefox extension to install"),
Extension(chrome="chrome path", firefox="firefox path")
],
headless=True, # if there are chrome extensions, chrome will not be headless as a selenium limitation
selenium_dir="./drivers"
)
@run_on(all_)
def test_both_firefox_and_chrome(web):
...
@run_on(firefox)
def test_firefox_only(web):
...
@run_on(chrome)
def test_chrome_only(web):
...
Running
Use pytest -n PROC
where PROC
is the number of parallel threads
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
autoparaselenium-0.1.4.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for autoparaselenium-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4418a34910d495a938fae7bbfb39c72df21e0f8090521da94521097177afe37 |
|
MD5 | f9ca86f20a0b9b5015d6d327c7d83824 |
|
BLAKE2b-256 | d0543e229840c0d8461a0c98ce8580372182d8994a4f749a43b11029d4e0c9cf |