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

Commit 6522e40

Browse files
committed
chore(cleanup): clean up imports and wdpromises (#5073)
1 parent 3b8f263 commit 6522e40

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

lib/driverProviders/browserStack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* It is responsible for setting up the account object, tearing
44
* it down, and setting up the driver correctly.
55
*/
6-
import {Session, WebDriver} from 'selenium-webdriver';
6+
import {WebDriver} from 'selenium-webdriver';
77
import * as util from 'util';
88

99
import {Config} from '../config';

lib/driverProviders/direct.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
import * as fs from 'fs';
77
import * as path from 'path';
88
import {Capabilities, WebDriver} from 'selenium-webdriver';
9-
import {Driver as ChromeDriver, ServiceBuilder as ChromeServiceBuilder} from 'selenium-webdriver/chrome';
10-
import {Driver as FirefoxDriver} from 'selenium-webdriver/firefox';
9+
import {ServiceBuilder as ChromeServiceBuilder} from 'selenium-webdriver/chrome';
1110

1211
import {Config} from '../config';
1312
import {BrowserError} from '../exitCodes';

lib/element.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ let WEB_ELEMENT_FUNCTIONS = [
7373
* that returns a list of the underlying Web Elements.
7474
* @param {webdriver.Locator} locator The most relevant locator. It is only
7575
* used for error reporting and ElementArrayFinder.locator.
76-
* @param {Array.<webdriver.promise.Promise>} opt_actionResults An array
76+
* @param {Array<Promise>} opt_actionResults An array
7777
* of promises which will be retrieved with then. Resolves to the latest
7878
* action result, or null if no action has been called.
7979
* @returns {ElementArrayFinder}
@@ -1091,7 +1091,7 @@ export class ElementFinder extends WebdriverWebElement {
10911091
* @see ElementFinder.isPresent
10921092
*
10931093
* @param {webdriver.Locator} subLocator Locator for element to look for.
1094-
* @returns {webdriver.promise.Promise<boolean>} which resolves to whether
1094+
* @returns {Promise<boolean>} which resolves to whether
10951095
* the subelement is present on the page.
10961096
*/
10971097
isElementPresent(subLocator: Locator): Promise<boolean> {
@@ -1137,7 +1137,7 @@ export class ElementFinder extends WebdriverWebElement {
11371137
*
11381138
* @param {!ElementFinder|!webdriver.WebElement} The element to compare to.
11391139
*
1140-
* @returns {!webdriver.promise.Promise.<boolean>} A promise that will be
1140+
* @returns {!Promise<boolean>} A promise that will be
11411141
* resolved to whether the two WebElements are equal.
11421142
*/
11431143
equals(element: ElementFinder|WebElement): Promise<any> {

lib/locators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {By, ByHash, promise as wdpromise, WebDriver, WebElement} from 'selenium-webdriver';
1+
import {By, ByHash, WebDriver, WebElement} from 'selenium-webdriver';
22

33
let clientSideScripts = require('./clientsidescripts');
44

0 commit comments

Comments
 (0)