UNPKG

2.08 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const webdriver = require("selenium-webdriver");
4const chrome = require("selenium-webdriver/chrome");
5const firefox = require("selenium-webdriver/firefox");
6const http = require("selenium-webdriver/http");
7const remote = require("selenium-webdriver/remote");
8class Ptor {
9 constructor() {
10 this.$ = function (search) {
11 return null;
12 };
13 this.$$ = function (search) {
14 return null;
15 };
16 // Export protractor classes.
17 this.ProtractorBrowser = require('./browser').ProtractorBrowser;
18 this.ElementFinder = require('./element').ElementFinder;
19 this.ElementArrayFinder = require('./element').ElementArrayFinder;
20 this.ProtractorBy = require('./locators').ProtractorBy;
21 this.ProtractorExpectedConditions = require('./expectedConditions').ProtractorExpectedConditions;
22 // Export selenium webdriver.
23 this.ActionSequence = webdriver.ActionSequence;
24 this.Browser = webdriver.Browser;
25 this.Builder = webdriver.Builder;
26 this.Button = webdriver.Button;
27 this.Capabilities = webdriver.Capabilities;
28 this.Capability = webdriver.Capability;
29 this.EventEmitter = webdriver.EventEmitter;
30 this.FileDetector = webdriver.FileDetector;
31 this.Key = webdriver.Key;
32 this.Session = webdriver.Session;
33 this.WebDriver = webdriver.WebDriver;
34 this.WebElement = webdriver.WebElement;
35 this.WebElementPromise = webdriver.WebElementPromise;
36 this.error = webdriver.error;
37 this.logging = webdriver.logging;
38 this.promise = webdriver.promise;
39 this.until = webdriver.until;
40 this.Command = require('selenium-webdriver/lib/command').Command;
41 this.CommandName = require('selenium-webdriver/lib/command').Name;
42 this.utils = { firefox: firefox, http: http, remote: remote, chrome: chrome };
43 }
44}
45exports.Ptor = Ptor;
46exports.protractor = new Ptor();
47//# sourceMappingURL=ptor.js.map
\No newline at end of file