UNPKG

2.44 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3// Re-export selenium-webdriver types.
4var selenium_webdriver_1 = require("selenium-webdriver");
5exports.ActionSequence = selenium_webdriver_1.ActionSequence;
6exports.Browser = selenium_webdriver_1.Browser;
7exports.Builder = selenium_webdriver_1.Builder;
8exports.Button = selenium_webdriver_1.Button;
9exports.Capabilities = selenium_webdriver_1.Capabilities;
10exports.Capability = selenium_webdriver_1.Capability;
11exports.error = selenium_webdriver_1.error;
12exports.EventEmitter = selenium_webdriver_1.EventEmitter;
13exports.FileDetector = selenium_webdriver_1.FileDetector;
14exports.Key = selenium_webdriver_1.Key;
15exports.logging = selenium_webdriver_1.logging;
16exports.promise = selenium_webdriver_1.promise;
17exports.Session = selenium_webdriver_1.Session;
18exports.until = selenium_webdriver_1.until;
19exports.WebDriver = selenium_webdriver_1.WebDriver;
20exports.WebElement = selenium_webdriver_1.WebElement;
21exports.WebElementPromise = selenium_webdriver_1.WebElementPromise;
22// Re-export public types.
23var browser_1 = require("./browser");
24exports.ProtractorBrowser = browser_1.ProtractorBrowser;
25var element_1 = require("./element");
26exports.ElementArrayFinder = element_1.ElementArrayFinder;
27exports.ElementFinder = element_1.ElementFinder;
28var expectedConditions_1 = require("./expectedConditions");
29exports.ProtractorExpectedConditions = expectedConditions_1.ProtractorExpectedConditions;
30var locators_1 = require("./locators");
31exports.ProtractorBy = locators_1.ProtractorBy;
32var ptor_1 = require("./ptor");
33exports.Ptor = ptor_1.Ptor;
34var runner_1 = require("./runner");
35exports.Runner = runner_1.Runner;
36exports.utils = {
37 firefox: require('selenium-webdriver/firefox'),
38 http: require('selenium-webdriver/http'),
39 remote: require('selenium-webdriver/remote')
40};
41exports.Command = require('selenium-webdriver/lib/command').Command;
42exports.CommandName = require('selenium-webdriver/lib/command').Name;
43Object.defineProperty(exports, 'protractor', { get: () => global['protractor'] });
44function registerGlobal(name) {
45 Object.defineProperty(exports, name, { get: () => exports.protractor ? exports.protractor[name] : undefined });
46}
47registerGlobal('browser');
48registerGlobal('$');
49registerGlobal('$$');
50registerGlobal('element');
51registerGlobal('By');
52registerGlobal('by');
53registerGlobal('ExpectedConditions');
54//# sourceMappingURL=index.js.map
\No newline at end of file