Skip to main content

It will download a WebDriver, and then set basic configuration automatically.

Project description

PWDriver (PyWebDriver)

PyPI version MIT License Code Coverage E2e test Release status

Motivation

To simplify automation settings of each different version, and browser.

Support:
  • ChromeDriver

  • GeckoDriver

  • EdgeDriver (Chromium)

  • IEDriver

Usage

1. Install:

pip install pwdriver

2. Make 'config.ini' file and locate in your project directory.

config.ini 's contents be like this.

[automation]
;automation.browser: chrome, gecko, edge, safari
automation.browser=chrome
;automation.local: true, false
automation.local=true
automation.url=http://localhost:4444/wd/hub

3. Import WebDriverFactory.

Now, we could launch webdriver.

from pwdriver.core import WebDriverFactory

driver = WebDriverFactory().launch()

Different Usage(using selenium)

Use with Chrome:

from selenium import webdriver
from pwdriver import core

core.setup_chromedriver()
driver = webdriver.Chrome()

Use with FireFox:

from selenium import webdriver
from pwdriver import core

core.setup_geckodriver()
driver = webdriver.Firefox()

Use with Edge:

from selenium import webdriver
from pwdriver import core

core.setup_edgedriver()
driver = webdriver.Edge()

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

pwdriver-0.25.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

pwdriver-0.25.3-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file pwdriver-0.25.3.tar.gz.

File metadata

  • Download URL: pwdriver-0.25.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pwdriver-0.25.3.tar.gz
Algorithm Hash digest
SHA256 4528b75ff5905d7cd9ad5e4c947c8898370adc4a5478847645fdc7d75eac6c06
MD5 956d2a1ca469b392f196564bfa4e4559
BLAKE2b-256 fce25aaa6322055da31368d8b45b5ac53a7b3adb07c0e6e10c1c2b52a847ad08

See more details on using hashes here.

File details

Details for the file pwdriver-0.25.3-py3-none-any.whl.

File metadata

  • Download URL: pwdriver-0.25.3-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pwdriver-0.25.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6eb54eed7e22ea1d40740b1420e29ed2af4230c5fce545d882e0fe41aa56a0ae
MD5 bdf84382e4d9f60d6f919aef7f3c245c
BLAKE2b-256 c0d882cf58425aa04187ad075a3975486aa391f6cf52ebcb473d67f32519642e

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