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, ie, 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.core import WebDriverFactory
WebDriverFactory().setup_chromedriver()
driver = webdriver.Chrome()
Use with FireFox:
from selenium import webdriver
from pwdriver.core import WebDriverFactory
WebDriverFactory().setup_geckodriver()
driver = webdriver.Firefox()
Use with Edge:
from selenium import webdriver
from pwdriver.core import WebDriverFactory
WebDriverFactory().setup_edgedriver()
driver = webdriver.Edge()
Use with IE:
from selenium import webdriver
from pwdriver.core import WebDriverFactory
WebDriverFactory().setup_iedriver()
driver = webdriver.Ie()
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.19.0.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for pwdriver-0.19.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a79505d864d35b2452ea98244ae994b78e1576fdb5b79940b86d75b86b44c850 |
|
MD5 | 68954b2b54e92c7b8223e7c9b2b9ab6c |
|
BLAKE2b-256 | cb2ada9fed0cad200b4fbfff5b58e40e5547338e9036c5fcdd90ed054f445df8 |