cabbie-sync
Version:
A synchronous webdriver client
37 lines (26 loc) • 3.36 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Options = exports.Browser = undefined;
var _modes = require('../enums/modes');
var _sessionData = require('./session-data');
var _flowRuntime = require('flow-runtime');
var _flowRuntime2 = _interopRequireDefault(_flowRuntime);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Session = _flowRuntime2.default.tdz(function () {
return _sessionData.Session;
});
/*
* Selected browser, if using Browser Stack, Sauce Labs or Testing Bot. See
* [Available Browsers](/browsers) for usage.
*/
/**
*
* This file is generated automatically, run npm run build to re-generate.
**/
var Mode = _flowRuntime2.default.tdz(function () {
return _modes.Mode;
});
var Browser = exports.Browser = _flowRuntime2.default.type('Browser', _flowRuntime2.default.object(_flowRuntime2.default.property('name', _flowRuntime2.default.string()), _flowRuntime2.default.property('version', _flowRuntime2.default.string(), true), _flowRuntime2.default.property('platform', _flowRuntime2.default.string(), true)));
var Options = exports.Options = _flowRuntime2.default.type('Options', _flowRuntime2.default.object(_flowRuntime2.default.property('base', _flowRuntime2.default.string(), true), _flowRuntime2.default.property('browser', Browser, true), _flowRuntime2.default.property('capabilities', _flowRuntime2.default.object(_flowRuntime2.default.indexer('key', _flowRuntime2.default.string(), _flowRuntime2.default.string())), true), _flowRuntime2.default.property('requiredCapabilities', _flowRuntime2.default.object(_flowRuntime2.default.indexer('key', _flowRuntime2.default.string(), _flowRuntime2.default.string())), true), _flowRuntime2.default.property('session', _flowRuntime2.default.ref(Session), true), _flowRuntime2.default.property('debug', _flowRuntime2.default.boolean(), true), _flowRuntime2.default.property('httpDebug', _flowRuntime2.default.boolean(), true), _flowRuntime2.default.property('onCall', _flowRuntime2.default.function(_flowRuntime2.default.param('event', _flowRuntime2.default.object()), _flowRuntime2.default.return(_flowRuntime2.default.mixed())), true), _flowRuntime2.default.property('onRequest', _flowRuntime2.default.function(_flowRuntime2.default.param('req', _flowRuntime2.default.object()), _flowRuntime2.default.return(_flowRuntime2.default.mixed())), true), _flowRuntime2.default.property('onResponse', _flowRuntime2.default.function(_flowRuntime2.default.param('res', _flowRuntime2.default.object()), _flowRuntime2.default.return(_flowRuntime2.default.mixed())), true), _flowRuntime2.default.property('mode', _flowRuntime2.default.ref(Mode), true), _flowRuntime2.default.property('sauceUsername', _flowRuntime2.default.string(), true), _flowRuntime2.default.property('sauceAccessKey', _flowRuntime2.default.string(), true), _flowRuntime2.default.property('browserStackUsername', _flowRuntime2.default.string(), true), _flowRuntime2.default.property('browserStackAccessKey', _flowRuntime2.default.string(), true), _flowRuntime2.default.property('testingBotKey', _flowRuntime2.default.string(), true), _flowRuntime2.default.property('testingBotSecret', _flowRuntime2.default.string(), true), _flowRuntime2.default.indexer('key', _flowRuntime2.default.string(), _flowRuntime2.default.void())));