Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 2e83dcd

Browse files
authored
fix(types): add webdriver.promise and webdriver.WebElement to namespace (#3392)
* fix(types): add webdriver.promise and webdriver.WebElement to namespace closes #3391 * fix(protractor): export class definitions under the protractor namespace closes #3377 * revert change - will open a new PR
1 parent dcbc832 commit 2e83dcd

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

lib/ptor.ts

+2-13
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,8 @@ export namespace protractor {
1616
export let ExpectedConditions: ProtractorExpectedConditions;
1717

1818
// Define selenium webdriver imports.
19-
export let promise = {
20-
controlFlow: webdriver.promise.controlFlow,
21-
createFlow: webdriver.promise.createFlow,
22-
defer: webdriver.promise.defer,
23-
delayed: webdriver.promise.delayed,
24-
filter: webdriver.promise.filter,
25-
fulfilled: webdriver.promise.fulfilled,
26-
fullyResolved: webdriver.promise.fullyResolved,
27-
isPromise: webdriver.promise.isPromise,
28-
rejected: webdriver.promise.rejected,
29-
thenFinally: webdriver.promise.thenFinally,
30-
when: webdriver.promise.when
31-
};
19+
export let promise = webdriver.promise;
20+
export let WebElement = webdriver.WebElement;
3221
export let ActionSequence = webdriver.ActionSequence;
3322
export let Key = webdriver.Key;
3423
export let Command = require('selenium-webdriver/lib/command').Command;

0 commit comments

Comments
 (0)