Enums

ApplicationCacheStatuses

import type {ApplicationCacheStatus} from 'cabbie-async';
import {ApplicationCacheStatuses} from 'cabbie-async';
UsageValueDescription
ApplicationCacheStatuses.UNCACHED0

Status of the HTML5 application cache - Uncached

ApplicationCacheStatuses.IDLE1

Status of the HTML5 application cache - Idle

ApplicationCacheStatuses.CHECKING2

Status of the HTML5 application cache - Checking

ApplicationCacheStatuses.DOWNLOADING3

Status of the HTML5 application cache - Downloading

ApplicationCacheStatuses.UPDATE_READY4

Status of the HTML5 application cache - Update-ready

ApplicationCacheStatuses.OBSOLETE5

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.

UsageValueDescription
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';
UsageValueDescription
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';
UsageValueDescription
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';
UsageValueDescription
MouseButtons.LEFT0

Left mouse button

MouseButtons.MIDDLE1

Middle mouse button. It is the scroll button on some mouses.

MouseButtons.RIGHT2

Right mouse button

SelectorTypes

import type {SelectorType} from 'cabbie-async';
import {SelectorTypes} from 'cabbie-async';
UsageValueDescription
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';
UsageValueDescription
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.