UNPKG

cabbie-sync

Version:
58 lines (50 loc) 2.02 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.SelectorType = 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 SelectorType = exports.SelectorType = _flowRuntime2.default.type('SelectorType', _flowRuntime2.default.union(_flowRuntime2.default.string('class name'), _flowRuntime2.default.string('css selector'), _flowRuntime2.default.string('id'), _flowRuntime2.default.string('name'), _flowRuntime2.default.string('link text'), _flowRuntime2.default.string('partial link text'), _flowRuntime2.default.string('tag name'), _flowRuntime2.default.string('xpath'))); var SelectorTypeEnum = { /* * Class-name selector type */ CLASS: _flowRuntime2.default.string('class name').assert('class name'), /* * Css selector type, using the native css selector support */ CSS: _flowRuntime2.default.string('css selector').assert('css selector'), /* * Id selector type */ ID: _flowRuntime2.default.string('id').assert('id'), /* * Name selector type */ NAME: _flowRuntime2.default.string('name').assert('name'), /* * Link text selector type, finding a link that fits the selector. * The full link-text needs to match. */ LINK_TEXT: _flowRuntime2.default.string('link text').assert('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. */ PARTIAL_LINK_TEXT: _flowRuntime2.default.string('partial link text').assert('partial link text'), /* * Tag-name selector type */ TAG: _flowRuntime2.default.string('tag name').assert('tag name'), /* * XPath selector type */ XPATH: _flowRuntime2.default.string('xpath').assert('xpath') }; exports.default = SelectorTypeEnum;