Skip to main content

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


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

Uploaded Source

Built Distribution

autoparaselenium-0.1.4-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file autoparaselenium-0.1.4.tar.gz.

File metadata

  • Download URL: autoparaselenium-0.1.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.13

File hashes

Hashes for autoparaselenium-0.1.4.tar.gz
Algorithm Hash digest
SHA256 305631739711349dc4904a0af883a0f593da6377c908e2ab27aeb55d9e4c563b
MD5 f75a4c52128ca7d5b8451665dd036fcc
BLAKE2b-256 5c2791d1c2409ea6c8f0f1f3ae555a349211d6211a68538d859fe7dd83f9e1f3

See more details on using hashes here.

File details

Details for the file autoparaselenium-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: autoparaselenium-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.13

File hashes

Hashes for autoparaselenium-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a4418a34910d495a938fae7bbfb39c72df21e0f8090521da94521097177afe37
MD5 f9ca86f20a0b9b5015d6d327c7d83824
BLAKE2b-256 d0543e229840c0d8461a0c98ce8580372182d8994a4f749a43b11029d4e0c9cf

See more details on using hashes here.

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