mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Fixes miscellaneous errors
This commit is contained in:
Vendored
+3
-3
@@ -3224,7 +3224,7 @@ export class Options {
|
||||
* invalid.
|
||||
* @throws {TypeError} if `spec` is not a cookie object.
|
||||
*/
|
||||
addCookie(spec: IWebDriverOptionsCookie): webdriver.promise.Promise<void>;
|
||||
addCookie(spec: IWebDriverOptionsCookie): promise.Promise<void>;
|
||||
|
||||
/**
|
||||
* Schedules a command to delete all cookies visible to the current page.
|
||||
@@ -3945,7 +3945,7 @@ export class WebDriver {
|
||||
* rejected if the condition times out.
|
||||
* @template T
|
||||
*/
|
||||
wait(condition: webdriver.WebElementCondition, opt_timeout?: number, opt_message?: string): WebElementPromise;
|
||||
wait(condition: WebElementCondition, opt_timeout?: number, opt_message?: string): WebElementPromise;
|
||||
|
||||
/**
|
||||
* Schedules a command to wait for a condition to hold. The condition may be
|
||||
@@ -4158,7 +4158,7 @@ export class WebDriver {
|
||||
* @extends {promise.IThenable<!webdriver.IWebDriver>}
|
||||
* @interface
|
||||
*/
|
||||
interface ThenableWebDriver extends WebDriver, webdriver.promise.IThenable<WebDriver> { }
|
||||
interface ThenableWebDriver extends WebDriver, promise.IThenable<WebDriver> { }
|
||||
|
||||
interface IWebElementId {
|
||||
[ELEMENT: string]: string;
|
||||
|
||||
@@ -649,7 +649,6 @@ function TestWebDriver() {
|
||||
booleanPromise = driver.wait((driver: webdriver.WebDriver) => true);
|
||||
booleanPromise = driver.wait((driver: webdriver.WebDriver) => Promise.resolve(true));
|
||||
booleanPromise = driver.wait((driver: webdriver.WebDriver) => webdriver.promise.Promise.resolve(true));
|
||||
booleanPromise = driver.wait(conditionFunction);
|
||||
booleanPromise = driver.wait(booleanPromise, 123);
|
||||
booleanPromise = driver.wait(booleanPromise, 123, 'Message');
|
||||
let webElementCondition: webdriver.WebElementCondition;
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": false,
|
||||
"strictNullChecks": false,
|
||||
@@ -33,4 +32,4 @@
|
||||
"test/firefox.ts",
|
||||
"test/remote.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user