Skip to main content

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

Project description

PWDriver (PyWebDriver)

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, ie, 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.21.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

pwdriver-0.21.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pwdriver-0.21.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.26.0 setuptools/58.3.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.2

File hashes

Hashes for pwdriver-0.21.0.tar.gz
Algorithm Hash digest
SHA256 0c7ada35d7f2143db656f8004fd4b74c11853570f1d3c00f1c465a582d066034
MD5 e088c3767b4fd3a2810a004c17120063
BLAKE2b-256 99fca72cc99b9d2053abc4fcd7d46956f5956507af46685e80aba42caec44275

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pwdriver-0.21.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.26.0 setuptools/58.3.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.2

File hashes

Hashes for pwdriver-0.21.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cac8bdf18f11ac9c0faeadab7f78bbffe07ffb527087a15bf5b59be1b9f2850c
MD5 762a0de8965f589d464b63384ef0f28c
BLAKE2b-256 26adab617aaa6f01cb59080a9af514f1f22989e3e0f4206336d50fb8fab526c7

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