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.25.1.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file pwdriver-0.25.1.tar.gz
.
File metadata
- Download URL: pwdriver-0.25.1.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 | d8244b6c1f70fc00fa1e5afbce4d7d8f67065892e3bcdf0d7fa4d9d54fcdb430 |
|
MD5 | 404273810ae54b8eefb84ddf16bb712c |
|
BLAKE2b-256 | 5b19c1ae2606e5a4cbf162ad693c28687e78cb7732eee70b3972d342b688915e |
File details
Details for the file pwdriver-0.25.1-py3-none-any.whl
.
File metadata
- Download URL: pwdriver-0.25.1-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 | 3323b70e1a787ed20913d5d88947417fde42a752cc14b8e76b4924322b14970a |
|
MD5 | 8697e4c08f8f7d4b8c0a7fd5dc93ec27 |
|
BLAKE2b-256 | 281a1c49c561c3bdcac31f914d31eb8d88b1e1b4f780d22b2231fa76be5754fd |