WebDriver
WebDriver class provides methods to get browser object for web automation.
clicknium.ie
: IE web driverclicknium.chrome
: Chrome web driverclicknium.edge
: Edge web driverclicknium.firefox
: Firefox web driverclicknium.chromium()
: Chromium based web driver, such as "brave", "vivaldi" and so on
Properties
browsers
: List[Browser], return all open browsers by current browser type.extension
: WebExtension, return the web extenion by current browser type.
Methods
- open: open browser with the specified url, return a BrowserTab object.
- attach: attach to an opened browser tab with the specified locator, return a BrowserTab object.
- attach_by_title_url: attach to an opened browser tab with the specified title and/or url, return a BrowserTab object.
Examples
from clicknium import clicknium as cc
# install chrome extension to automate chrome browser
cc.chrome.extension.install()
# open chrome browser
cc.chrome.open("www.bing.com")