Skip to main content

Restartable webdriver instances

Project description

webdriver_kaifuku

Restartable webdriver instances

Python Versions PyPI version github actions License

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


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)

Uploaded Source

Built Distribution

webdriver_kaifuku-22.5.6.0-py2.py3-none-any.whl (12.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page