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.0.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file pwdriver-0.25.0.tar.gz
.
File metadata
- Download URL: pwdriver-0.25.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 | be0e4a2e3f0f48bf5040d367977be4a79780f4f523861a8ceb51ca76c09b13b0 |
|
MD5 | f46317910162168e78c60f363f15716f |
|
BLAKE2b-256 | cb54f1d1c3007e82f3b3f8dafdd16f05b9924a20bdea0677a5c14c2be7a69d20 |
File details
Details for the file pwdriver-0.25.0-py3-none-any.whl
.
File metadata
- Download URL: pwdriver-0.25.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 | a9603963a1d6f995215b116a15362dcde6b9dfe023a03b09746f3b92f23d6927 |
|
MD5 | 11781ee29bd0cf950b8dceadd002c7a4 |
|
BLAKE2b-256 | ad9c6d0f0dafd6649f177f656124634d173fffa56ee89ec2b6b078bffffaed34 |