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.23.0.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file pwdriver-0.23.0.tar.gz
.
File metadata
- Download URL: pwdriver-0.23.0.tar.gz
- Upload date:
- Size: 6.4 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 | fd22cc5e20fff2a0ad238889bbcd1f76790befc2652e0c7e2b60fe086e39ef7f |
|
MD5 | a217cc421c819050147cb9e1adc64a3f |
|
BLAKE2b-256 | 17e4407e7c68a7dd859a3538e3c6add3c38b96550923071d208fd5c8ba2ecb88 |
File details
Details for the file pwdriver-0.23.0-py3-none-any.whl
.
File metadata
- Download URL: pwdriver-0.23.0-py3-none-any.whl
- Upload date:
- Size: 7.3 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 | e63dba1986cf6afc39cde92295c4e657d86fc6bf1f7b08d449c059455c543542 |
|
MD5 | bfd7e1ed7b0dbd4c0018d94c42de1554 |
|
BLAKE2b-256 | 73c628d7168745a3dcc06b034e2bf16db4bff585fde431dd714ba5cd741af0c0 |