cabbie-sync
Version:
A synchronous webdriver client
116 lines (83 loc) • 3.41 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require("babel-runtime/helpers/createClass");
var _createClass3 = _interopRequireDefault(_createClass2);
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.
**/
/*
* Selenium status
*/
var Status = function () {
function Status(values /*: Object*/) {
(0, _classCallCheck3.default)(this, Status);
var _valuesType = _flowRuntime2.default.object();
_flowRuntime2.default.param("values", _valuesType).assert(values);
this._values = values;
}
/*
* A generic release label
*/
(0, _createClass3.default)(Status, [{
key: "getBuildVersion",
value: function getBuildVersion() /*: string | void*/ {
var _returnType = _flowRuntime2.default.return(_flowRuntime2.default.union(_flowRuntime2.default.string(), _flowRuntime2.default.void()));
return _returnType.assert(this._values.build && this._values.build.version);
}
/*
* The revision of the local source control client from which the server was built
*/
}, {
key: "getBuildRevision",
value: function getBuildRevision() /*: string | void*/ {
var _returnType2 = _flowRuntime2.default.return(_flowRuntime2.default.union(_flowRuntime2.default.string(), _flowRuntime2.default.void()));
return _returnType2.assert(this._values.build && this._values.build.revision);
}
/*
* A timestamp from when the server was built.
*/
}, {
key: "getBuildTime",
value: function getBuildTime() /*: number | void*/ {
var _returnType3 = _flowRuntime2.default.return(_flowRuntime2.default.union(_flowRuntime2.default.number(), _flowRuntime2.default.void()));
return _returnType3.assert(this._values.build && this._values.build.time);
}
/*
* The current system architecture.
*/
}, {
key: "getOSArchitecture",
value: function getOSArchitecture() /*: string | void*/ {
var _returnType4 = _flowRuntime2.default.return(_flowRuntime2.default.union(_flowRuntime2.default.string(), _flowRuntime2.default.void()));
return _returnType4.assert(this._values.os && this._values.os.arch);
}
/*
* The name of the operating system the server is currently running on: "windows", "linux", etc.
*/
}, {
key: "getOSName",
value: function getOSName() /*: string | void*/ {
var _returnType5 = _flowRuntime2.default.return(_flowRuntime2.default.union(_flowRuntime2.default.string(), _flowRuntime2.default.void()));
return _returnType5.assert(this._values.os && this._values.os.name);
}
/*
* The operating system version.
*/
}, {
key: "getOSVersion",
value: function getOSVersion() /*: string | void*/ {
var _returnType6 = _flowRuntime2.default.return(_flowRuntime2.default.union(_flowRuntime2.default.string(), _flowRuntime2.default.void()));
return _returnType6.assert(this._values.os && this._values.os.version);
}
}]);
return Status;
}();
exports.default = Status;