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