Skip to main content

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

Project description

PWDriver (PyWebDriver)

test-bot release-bot

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.2.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

pwdriver-0.25.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pwdriver-0.25.2.tar.gz
  • Upload date:
  • Size: 7.0 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.2.tar.gz
Algorithm Hash digest
SHA256 9151d4548ad7ed52e8d1647473c68afae9d9a7cf77ae241b0bc4eb5559a5903b
MD5 3e07f4926776a75033086776a39e730c
BLAKE2b-256 47bf89f8cb6917560fb3c94df84c56a3ee1677b9b2cac390c971cb6e5ddb0f5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pwdriver-0.25.2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b45466e47222338391a43bc06beab38f899de226a74307571410348bb2239236
MD5 ad4c86ee86f4ad4fd4776636b8a1be31
BLAKE2b-256 89252ea03ddce0c05bf084dbd7249f5005a6c18e9263e928a8503d540668d29f

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