forked from angular/protractor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.ts
21 lines (20 loc) · 831 Bytes
/
globals.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import {
ProtractorBrowser,
ElementArrayFinder,
ElementFinder,
ElementHelper,
ProtractorBy,
ProtractorExpectedConditions,
Ptor
} from 'protractor';
export let protractor: Ptor = (global as any)['protractor'];
export let browser: ProtractorBrowser = protractor.browser;
export let $: (search: string) => ElementFinder = protractor.$;
export let $$: (search: string) => ElementArrayFinder = protractor.$$;
export let element: ElementHelper = protractor.element;
export let By: ProtractorBy = protractor.By;
export let by: ProtractorBy = protractor.by;
export let wrapDriver:
(webdriver: any, baseUrl?: string, rootElement?: string,
untrackOutstandingTimeouts?: boolean) => ProtractorBrowser = protractor.wrapDriver;
export let ExpectedConditions: ProtractorExpectedConditions = protractor.ExpectedConditions;