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, 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
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.24.0.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file pwdriver-0.24.0.tar.gz
.
File metadata
- Download URL: pwdriver-0.24.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8415bdb2622e017b82b88b116df8c3cac9f7ce6a95302fefb9d0931b69d59f2f |
|
MD5 | 9a56488c1da5ae413f3b547076290371 |
|
BLAKE2b-256 | 1d66d3a19dd357aadcb88a6ab82f4ac692d420d38be27fdf062c844b4f85b1eb |
File details
Details for the file pwdriver-0.24.0-py3-none-any.whl
.
File metadata
- Download URL: pwdriver-0.24.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e36cf415213778eebefaddc00c6ef7471191d14c2935ba51a72e9e0aea6bbf1f |
|
MD5 | ab30f33b0225ebdff4fbf53003ebb02c |
|
BLAKE2b-256 | 776248da90dabc111f1b453dd4c61ba2528771bae45d6a0beeec383be4252f5f |