UNPKG

1.99 kBTypeScriptView Raw
1import * as webdriver from 'selenium-webdriver';
2import * as chrome from 'selenium-webdriver/chrome';
3import * as firefox from 'selenium-webdriver/firefox';
4import * as http from 'selenium-webdriver/http';
5import * as remote from 'selenium-webdriver/remote';
6import { ElementHelper, ProtractorBrowser } from './browser';
7import { ElementArrayFinder, ElementFinder } from './element';
8import { ProtractorExpectedConditions } from './expectedConditions';
9import { ProtractorBy } from './locators';
10export declare class Ptor {
11 browser: ProtractorBrowser;
12 $: (search: string) => ElementFinder;
13 $$: (search: string) => ElementArrayFinder;
14 element: ElementHelper;
15 By: ProtractorBy;
16 by: ProtractorBy;
17 wrapDriver: (webdriver: webdriver.WebDriver, baseUrl?: string, rootElement?: string, untrackOutstandingTimeouts?: boolean) => ProtractorBrowser;
18 ExpectedConditions: ProtractorExpectedConditions;
19 ProtractorBrowser: any;
20 ElementFinder: any;
21 ElementArrayFinder: any;
22 ProtractorBy: any;
23 ProtractorExpectedConditions: any;
24 ActionSequence: typeof webdriver.ActionSequence;
25 Browser: webdriver.IBrowser;
26 Builder: typeof webdriver.Builder;
27 Button: webdriver.IButton;
28 Capabilities: typeof webdriver.Capabilities;
29 Capability: webdriver.ICapability;
30 EventEmitter: typeof webdriver.EventEmitter;
31 FileDetector: typeof webdriver.FileDetector;
32 Key: webdriver.IKey;
33 Session: typeof webdriver.Session;
34 WebDriver: typeof webdriver.WebDriver;
35 WebElement: typeof webdriver.WebElement;
36 WebElementPromise: typeof webdriver.WebElementPromise;
37 error: typeof webdriver.error;
38 logging: typeof webdriver.logging;
39 promise: typeof webdriver.promise;
40 until: typeof webdriver.until;
41 Command: any;
42 CommandName: any;
43 utils: {
44 firefox: typeof firefox;
45 http: typeof http;
46 remote: typeof remote;
47 chrome: typeof chrome;
48 };
49}
50export declare let protractor: Ptor;