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.22.0.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file pwdriver-0.22.0.tar.gz
.
File metadata
- Download URL: pwdriver-0.22.0.tar.gz
- Upload date:
- Size: 6.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62a5e97dcde3b3ba6f5b3afe07dd79612b1ca1277f7f806ed4f25ed8532d4f93 |
|
MD5 | 49058d8d94472dd554668127726eaccc |
|
BLAKE2b-256 | 9aa6dd0475913ce494f0539cd6f50fe832f44c2be6c6fe930a9d128291aaae1c |
File details
Details for the file pwdriver-0.22.0-py3-none-any.whl
.
File metadata
- Download URL: pwdriver-0.22.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.26.0 setuptools/58.3.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c6868489c5c86338586428a7931e827c00c2c255ee401f0a50a32f5898229b4 |
|
MD5 | 4cb8b33905c831f36b97203d2e5f1594 |
|
BLAKE2b-256 | 004cad7b7afb95d95018bc0c5ec2da91e9a022d36c1c224820cfb569727c0601 |