UNPKG

cabbie-sync

Version:
89 lines (82 loc) 3.84 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.Capability = undefined; var _flowRuntime = require('flow-runtime'); var _flowRuntime2 = _interopRequireDefault(_flowRuntime); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * * This file is generated automatically, run npm run build to re-generate. **/ var Capability = exports.Capability = _flowRuntime2.default.type('Capability', _flowRuntime2.default.union(_flowRuntime2.default.string('browserName'), _flowRuntime2.default.string('version'), _flowRuntime2.default.string('platform'), _flowRuntime2.default.string('javascriptEnabled'), _flowRuntime2.default.string('takesScreenshot'), _flowRuntime2.default.string('handlesAlert'), _flowRuntime2.default.string('databaseEnabled'), _flowRuntime2.default.string('locationContextEnabled'), _flowRuntime2.default.string('applicationCacheEnabled'), _flowRuntime2.default.string('browserConnectionEnabled'), _flowRuntime2.default.string('cssSelectorsEnabled'), _flowRuntime2.default.string('webStorageEnabled'), _flowRuntime2.default.string('rotatable'), _flowRuntime2.default.string('acceptSslCerts'), _flowRuntime2.default.string('nativeEvents'), _flowRuntime2.default.string('proxy'))); var CapabilityEnum = { /* * Request for a specific browser */ BROWSER_NAME: _flowRuntime2.default.string('browserName').assert('browserName'), /* * Request for a specific browser version */ VERSION: _flowRuntime2.default.string('version').assert('version'), /* * Request for a specific platform */ PLATFORM: _flowRuntime2.default.string('platform').assert('platform'), /* * Request for JavaScript to be enabled in the browser */ JAVASCRIPT_ENABLED: _flowRuntime2.default.string('javascriptEnabled').assert('javascriptEnabled'), /* * Request for screenshot support */ TAKES_SCREENSHOT: _flowRuntime2.default.string('takesScreenshot').assert('takesScreenshot'), /* * Request for alert handling support */ HANDLES_ALERT: _flowRuntime2.default.string('handlesAlert').assert('handlesAlert'), /* * Request for the browser database to be enabled */ DATABASE_ENABLED: _flowRuntime2.default.string('databaseEnabled').assert('databaseEnabled'), /* * Request for the browser location API to be enabled */ LOCATION_CONTEXT_ENABLED: _flowRuntime2.default.string('locationContextEnabled').assert('locationContextEnabled'), /* * Request for the browser cache to be enabled */ APPLICATION_CACHE_ENABLED: _flowRuntime2.default.string('applicationCacheEnabled').assert('applicationCacheEnabled'), /* * Request for the ability to query the browsers connectivity */ BROWSER_CONNECTION_ENABLED: _flowRuntime2.default.string('browserConnectionEnabled').assert('browserConnectionEnabled'), /* * Request for native css selector support. * * Note: This should always be requested since this is the default for Cabbie. */ CSS_SELECTORS_ENABLED: _flowRuntime2.default.string('cssSelectorsEnabled').assert('cssSelectorsEnabled'), /* * Request for the web-storage to be enabled */ WEB_STORAGE_ENABLED: _flowRuntime2.default.string('webStorageEnabled').assert('webStorageEnabled'), /* * Request for a browser that can be rotated (orientation). */ ROTATABLE: _flowRuntime2.default.string('rotatable').assert('rotatable'), /* * Request for the browser to accept any ssl certificates */ ACCEPT_SSL_CERTS: _flowRuntime2.default.string('acceptSslCerts').assert('acceptSslCerts'), /* * Request for native-events */ NATIVE_EVENTS: _flowRuntime2.default.string('nativeEvents').assert('nativeEvents'), /* * Request for a proxy */ PROXY: _flowRuntime2.default.string('proxy').assert('proxy') }; exports.default = CapabilityEnum;