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
Release history Release notifications | RSS feed
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.17.0.tar.gz
(6.9 kB
view details)
Built Distribution
File details
Details for the file pwdriver-0.17.0.tar.gz
.
File metadata
- Download URL: pwdriver-0.17.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/58.3.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8196b6d701fd369c065b19d329b33b271d20b2344a12778b2e1f8dcf4d8318d4 |
|
MD5 | 255860aff0c0eb6e3bf9fd9f41bf7b15 |
|
BLAKE2b-256 | 4dbd455e8961ed664d74b19c64972d99faee4bbdc3cf8ef1cafe1386843b14c6 |
File details
Details for the file pwdriver-0.17.0-py3-none-any.whl
.
File metadata
- Download URL: pwdriver-0.17.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/58.3.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eace2d94fa0f482a47d74903e2a3819e7030ec8d31503fca15c1ccdfec8eaa70 |
|
MD5 | 30060f6abb5c4a9719bc6b4b8ea83a69 |
|
BLAKE2b-256 | d28f51831c11b03edaab3f15c091dd807dd27621a082fc52782631eb6d96e637 |