Restartable webdriver instances
Project description
webdriver_kaifuku
Restartable webdriver instances
The library provides restartable webdriver instances.Usage:
It support both local
and remote
webdriver. Some basic examples are-
- Local Browser
Make sure webdriver
is already installed on your local machine.
from webdriver_kaifuku import BrowserManager
manager = BrowserManager.from_conf({"webdriver": "Chrome"})
manager.start()
manager.close()
from webdriver_kaifuku import BrowserManager
manager_config = {
"webdriver": "Remote",
"webdriver_options": {
"desired_capabilities": {"browserName": "firefox"},
"command_executor": "http://localhost:<port>/wd/hub",
},
}
manager = BrowserManager.from_conf(manager_config)
manager.start()
manager.close()
from webdriver_kaifuku import BrowserManager
manager_config = {
"webdriver_wharf": "<wharf_url>",
"webdriver": "Remote",
"webdriver_options": {"desired_capabilities": {"browserName": "firefox"}},
}
manager = BrowserManager.from_conf(manager_config)
manager.start()
manager.close()
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
webdriver_kaifuku-22.5.6.0.tar.gz
(17.1 kB
view hashes)
Built Distribution
Close
Hashes for webdriver_kaifuku-22.5.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 250baf4b74e22b7ccfad9b78dd8b871981899dddd25aaad7836280f3457f04a5 |
|
MD5 | 1723150f7f2fe6b6c0da23923ff05530 |
|
BLAKE2b-256 | 2c535567019c7e75213b44652696d4577317cc12e2560c65b099398061a13b90 |
Close
Hashes for webdriver_kaifuku-22.5.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e38d63681f13192ed61c8cfcc589f01bfa10cfce5d76720a372bca91310f79b9 |
|
MD5 | 72ff6db3efda15a575e2604cf4624ead |
|
BLAKE2b-256 | b0794a56e53d974a93a9736e2cfe48f960d1a2982eedb27a42edd3d149b128f6 |