@openfin/automation-helpers
Advanced tools
Comparing version 0.2.7 to 0.2.8
{ | ||
"name": "@openfin/automation-helpers", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Helper methods for automation testing in the OpenFin ecosystem", | ||
@@ -5,0 +5,0 @@ "author": "martyn.janes@openfin.co", |
@@ -7,5 +7,6 @@ /** | ||
* Get the identity of the window. | ||
* @param timeout The timeout in ms to wait for the identity. | ||
* @returns The window identity or undefined if not found. | ||
*/ | ||
static getIdentity(): Promise<{ | ||
static getIdentity(timeout?: number): Promise<{ | ||
uuid: string; | ||
@@ -12,0 +13,0 @@ name: string; |
import { type Client } from "webdriver"; | ||
import type { IWebDriver } from "../models/IWebDriver"; | ||
import type { IWebDriverElement } from "../models/IWebDriverElement"; | ||
import type { IWebDriverWindow } from "../models/IWebDriverWindow"; | ||
import type { LocatorTypes } from "../models/locatorTypes"; | ||
import type { WebDriverAction } from "../models/webDriverAction"; | ||
import type { WindowLocatorTypes } from "../models/windowLocatorTypes"; | ||
import type { WindowLocatorValueTypes } from "../models/windowLocatorValueTypes"; | ||
import { BaseWebDriver } from "./baseWebDriver"; | ||
@@ -45,21 +42,2 @@ import { NodeWebDriverWindow } from "./nodeWebDriverWindow"; | ||
/** | ||
* Get the details of all the connected windows. | ||
* @returns The list of windows. | ||
* @see https://w3c.github.io/webdriver/#dfn-get-window-handles | ||
*/ | ||
getWindows(): Promise<IWebDriverWindow[]>; | ||
/** | ||
* Get the details of the current window. | ||
* @returns The list of windows. | ||
* @see https://w3c.github.io/webdriver/#dfn-get-window-handle | ||
*/ | ||
getWindow(): Promise<IWebDriverWindow | undefined>; | ||
/** | ||
* Switch to a window by locator. | ||
* @param locator The locator type. | ||
* @param locatorValue The window locator value to use. | ||
* @returns True if the window was available. | ||
*/ | ||
switchToWindow(locator: WindowLocatorTypes, locatorValue: WindowLocatorValueTypes): Promise<boolean>; | ||
/** | ||
* Find an element. | ||
@@ -66,0 +44,0 @@ * @param locator The locator to use when finding the element. |
Sorry, the diff of this file is too big to display
447500
5237