Exception is raised whenever a certain operation is terminated abnormally. Besides python Built-in Exceptions, we also define clicknium exceptions which all inherit from BaseError.
Clicknium Exceptions #
|All Clicknium exceptions inherit from this class.
|ArgumentError is raised when at least one of the arguments provided to a method is not valid.
|ArgumentNullError is raised when a null reference is passed to a method that does not accept it as a valid argument.
|ArgumentOutOfRangeError is raised when the value of an argument is out of the allowable range of values as defined by the invoked method.
|BrowserNotInstallError is raised when the specified browser is not installed.
|BrowserNotRunError is raised when the specified browser is not running.
|ElementNotFoundError is raised when the target UI element can not be found by the given locator.
|ExtensionOperationError is raised when an extension fails in operation “install”, “update” or “uninstall”.
|InvalidOperationError is raised when a method call is invalid for the object’s current state.
|InvalidSelectedItemError is raised when the item to be selected is invalid for the object’s current state.
|LocatorRequestError is raised when the cloud locator cannot be acquired due to server request error.
|LocatorUndefinedError is raised when the specified locator can not be found in locator store.
|NotSupportedError is raised when an invoked method is not supported, or when an attempt to read, seek, or write to a stream that does not support the invoked functionality.
|NotSupportedOperationError is raised when the method is invoked by a UI element which does not support the type of operation.
|NotSupportedOperationOptionError is raised when the specified option value is not supported by the target UI element.
|OperationTimeoutError is raised when a certain operation is not completed within given time.
|ProjectSettingNotFoundError is raised when project setting file
clicknium.yaml is missing.
|ScreenOperationError is raised when screen operations of Windows desktop UI element fail.
|UiaPatternNotFoundError is raised when a window UI element can not be found by UIA technology.
|UnAuthorizedError is raised when user does not sign in or the sign in state is expired.
|UnreachableBrowserExtensionError is raised when the specified browser’s extension is not in ready state. Please check if the extension is installed and enabled.
|WebElementNotRespondingError is raised when the web page is not responding.
|WebError is raised for common web automation exceptions.
|WindowError is raised for common window exceptions.
|WindowsNativeError is raised when an underneath win32 method fails.