Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/driverProviders/browserStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* It is responsible for setting up the account object, tearing
* it down, and setting up the driver correctly.
*/
import {Session, WebDriver} from 'selenium-webdriver';
import {WebDriver} from 'selenium-webdriver';
import * as util from 'util';

import {Config} from '../config';
Expand Down
3 changes: 1 addition & 2 deletions lib/driverProviders/direct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
import * as fs from 'fs';
import * as path from 'path';
import {Capabilities, WebDriver} from 'selenium-webdriver';
import {Driver as ChromeDriver, ServiceBuilder as ChromeServiceBuilder} from 'selenium-webdriver/chrome';
import {Driver as FirefoxDriver} from 'selenium-webdriver/firefox';
import {ServiceBuilder as ChromeServiceBuilder} from 'selenium-webdriver/chrome';

import {Config} from '../config';
import {BrowserError} from '../exitCodes';
Expand Down
6 changes: 3 additions & 3 deletions lib/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ let WEB_ELEMENT_FUNCTIONS = [
* that returns a list of the underlying Web Elements.
* @param {webdriver.Locator} locator The most relevant locator. It is only
* used for error reporting and ElementArrayFinder.locator.
* @param {Array.<webdriver.promise.Promise>} opt_actionResults An array
* @param {Array<Promise>} opt_actionResults An array
* of promises which will be retrieved with then. Resolves to the latest
* action result, or null if no action has been called.
* @returns {ElementArrayFinder}
Expand Down Expand Up @@ -1091,7 +1091,7 @@ export class ElementFinder extends WebdriverWebElement {
* @see ElementFinder.isPresent
*
* @param {webdriver.Locator} subLocator Locator for element to look for.
* @returns {webdriver.promise.Promise<boolean>} which resolves to whether
* @returns {Promise<boolean>} which resolves to whether
* the subelement is present on the page.
*/
isElementPresent(subLocator: Locator): Promise<boolean> {
Expand Down Expand Up @@ -1137,7 +1137,7 @@ export class ElementFinder extends WebdriverWebElement {
*
* @param {!ElementFinder|!webdriver.WebElement} The element to compare to.
*
* @returns {!webdriver.promise.Promise.<boolean>} A promise that will be
* @returns {!Promise<boolean>} A promise that will be
* resolved to whether the two WebElements are equal.
*/
equals(element: ElementFinder|WebElement): Promise<any> {
Expand Down
2 changes: 1 addition & 1 deletion lib/locators.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {By, ByHash, promise as wdpromise, WebDriver, WebElement} from 'selenium-webdriver';
import {By, ByHash, WebDriver, WebElement} from 'selenium-webdriver';

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

Expand Down