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
Built Distribution
Close
Hashes for webdriver_kaifuku-22.6.20.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ed5770fb84afd8986d9ff8c97560188eb2db88b4316036164005d36922c71c5 |
|
MD5 | 5597e85528ed7b7dc647bc1f1e7bbb1d |
|
BLAKE2b-256 | 1093b0afcafec6defedc489e1b7a15326ce0335bccf1adbdf5247ac229da66b0 |
Close
Hashes for webdriver_kaifuku-22.6.20.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd505e0f967408d82f979478cb894c9d20f0f5c98688169224c9af47eecc0ecd |
|
MD5 | 2276be89804768239a0369cf5ca323e7 |
|
BLAKE2b-256 | 5347e8958b98dee88dbb532ea7309f8cfc495e83a20af312294523055ff8de5b |