Enums
ApplicationCacheStatuses
import type {ApplicationCacheStatus} from 'cabbie-async';
import {ApplicationCacheStatuses} from 'cabbie-async';
Usage | Value | Description |
---|---|---|
ApplicationCacheStatuses.UNCACHED | 0 | Status of the HTML5 application cache - Uncached |
ApplicationCacheStatuses.IDLE | 1 | Status of the HTML5 application cache - Idle |
ApplicationCacheStatuses.CHECKING | 2 | Status of the HTML5 application cache - Checking |
ApplicationCacheStatuses.DOWNLOADING | 3 | Status of the HTML5 application cache - Downloading |
ApplicationCacheStatuses.UPDATE_READY | 4 | Status of the HTML5 application cache - Update-ready |
ApplicationCacheStatuses.OBSOLETE | 5 | Status of the HTML5 application cache - Obsolete |
BrowserOrientations
import type {BrowserOrientation} from 'cabbie-async';
import {BrowserOrientations} from 'cabbie-async';
Browser orientaton is typically used for mobile devices to track whether the device is in landscape or portrait mode.
Usage | Value | Description |
---|---|---|
BrowserOrientations.ORIENTATION_LANDSCAPE | 'landscape' | Landscape orientation of the device |
BrowserOrientations.ORIENTATION_PORTRAIT | 'portrait' | Portrait orientation of the device |
LogLevels
import type {LogLevel} from 'cabbie-async';
import {LogLevels} from 'cabbie-async';
Usage | Value | Description |
---|---|---|
LogLevels.ALL | 'ALL' | Log level 'All' |
LogLevels.DEBUG | 'DEBUG' | Log level 'Debug' |
LogLevels.INFO | 'INFO' | Log level 'Info' |
LogLevels.WARNING | 'WARNING' | Log level 'Warning' |
LogLevels.SEVERE | 'SEVERE' | Log level 'Severe' |
LogLevels.OFF | 'OFF' | Log level 'Off'. Nothing will be logged. |
Modes
import type {Mode} from 'cabbie-async';
import {Modes} from 'cabbie-async';
Usage | Value | Description |
---|---|---|
Modes.SYNC | 'sync' | Sync-mode of web-driver requests |
Modes.ASYNC | 'async' | Async-mode of web-driver requests |
MouseButtons
import type {MouseButton} from 'cabbie-async';
import {MouseButtons} from 'cabbie-async';
Usage | Value | Description |
---|---|---|
MouseButtons.LEFT | 0 | Left mouse button |
MouseButtons.MIDDLE | 1 | Middle mouse button. It is the scroll button on some mouses. |
MouseButtons.RIGHT | 2 | Right mouse button |
SelectorTypes
import type {SelectorType} from 'cabbie-async';
import {SelectorTypes} from 'cabbie-async';
Usage | Value | Description |
---|---|---|
SelectorTypes.CLASS | 'class name' | Class-name selector type |
SelectorTypes.CSS | 'css selector' | Css selector type, using the native css selector support |
SelectorTypes.ID | 'id' | Id selector type |
SelectorTypes.NAME | 'name' | Name selector type |
SelectorTypes.LINK_TEXT | 'link text' | Link text selector type, finding a link that fits the selector. The full link-text needs to match. |
SelectorTypes.PARTIAL_LINK_TEXT | 'partial link text' | Partial-link text selector type, finding a link that partially fits the selector. Only a part of the link-text needs to match. |
SelectorTypes.TAG | 'tag name' | Tag-name selector type |
SelectorTypes.XPATH | 'xpath' | XPath selector type |
TimeOutTypes
import type {TimeOutType} from 'cabbie-async';
import {TimeOutTypes} from 'cabbie-async';
Usage | Value | Description |
---|---|---|
TimeOutTypes.SCRIPT | 'script' | Synchronous script execution timeout |
TimeOutTypes.ASYNC_SCRIPT | 'async' | Asynchronous script execution timeout |
TimeOutTypes.PAGE_LOAD | 'page load' | Page load timeout |
TimeOutTypes.IMPLICIT | 'implicit' | Implicit wait timeout. Implicit waits are applied for all requests. |