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.core import WebDriverFactory

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

Use with FireFox:

from selenium import webdriver
from pwdriver.core import WebDriverFactory

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

Use with Edge:

from selenium import webdriver
from pwdriver.core import WebDriverFactory

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

Use with IE:

from selenium import webdriver
from pwdriver.core import WebDriverFactory

WebDriverFactory().setup_iedriver()
driver = webdriver.Ie()

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

Uploaded Source

Built Distribution

pwdriver-0.18.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pwdriver-0.18.0.tar.gz
  • Upload date:
  • Size: 6.1 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.18.0.tar.gz
Algorithm Hash digest
SHA256 71c6272dfb5b8059ecff2024a7aaa0e83fe78b4547afc732d103b0dd62abc9e9
MD5 1d86f7699087352e434913271bfd043d
BLAKE2b-256 7e7e987ec702f2dfb836ce059e6bdb4846b2bdee899edf4a8985298a9c869b94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pwdriver-0.18.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 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.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9267a74ed9b7b8742c0eacf201ee862a3a9d55d022a8e7b0ba91de5877252066
MD5 2d0aac1c0e6f061a68cea46a1f19266f
BLAKE2b-256 e874794b0af7628c7a6fc5e800fc28f6bfeb2df4e1017b696817ca3ca4519d7b

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