WebDriver.extension.detect

def detect(self) -> ExtensionStatus

Detect the installation status of the browser extension.

.

Returns:
 ExtensionStatus object, import the module with from clicknium.common.enums import ExtensionStatus, and the class definition is as follows:

class ExtensionStatus:
NotInstalled = "NotInstalled"
NeedUpdate = "NeedUpdate"
Installed = "Installed"

Example:


from clicknium import clicknium as cc
from clicknium.common.enums import ExtensionStatus

# detect chrome extension
chrome_status = cc.chrome.extension.detect()
if chrome_status == ExtensionStatus.NeedUpdate:
cc.chrome.extension.update()

PreviousupdateNextinstall_or_update

What are your feelings
Updated on 29 August 2023