@openfin/automation-helpers
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "@openfin/automation-helpers", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Helper methods for automation testing in the OpenFin ecosystem", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -63,2 +63,7 @@ import type { IWebDriverElement } from "./IWebDriverElement"; | ||
findElements(locator: LocatorTypes, value: string): Promise<IWebDriverElement[]>; | ||
/** | ||
* Take a screenshot of the whole page. | ||
* @returns Returns a base64 encoded png. | ||
*/ | ||
screenshot(): Promise<string>; | ||
} |
@@ -32,2 +32,12 @@ import type { LocatorTypes } from "./locatorTypes"; | ||
/** | ||
* Get the text for an element. | ||
* @returns The text. | ||
*/ | ||
getText(): Promise<string>; | ||
/** | ||
* Get the HTML for an element. | ||
* @returns The HTML. | ||
*/ | ||
getHTML(): Promise<string>; | ||
/** | ||
* Get an attribute for an element. | ||
@@ -38,2 +48,22 @@ * @param attribute The attribute to get. | ||
getAttribute(attribute: string): Promise<string>; | ||
/** | ||
* Is the element enabled. | ||
* @returns True if the element is enabled. | ||
*/ | ||
isEnabled(): Promise<boolean>; | ||
/** | ||
* Is the element displayed. | ||
* @returns True if the element is displayed. | ||
*/ | ||
isDisplayed(): Promise<boolean>; | ||
/** | ||
* Is the element selected. | ||
* @returns True if the element is selected. | ||
*/ | ||
isSelected(): Promise<boolean>; | ||
/** | ||
* Take a screenshot of the element. | ||
* @returns Returns a base64 encoded png. | ||
*/ | ||
screenshot(): Promise<string>; | ||
} |
@@ -74,2 +74,7 @@ import { type Client } from "webdriver"; | ||
findElements(locator: LocatorTypes, value: string): Promise<IWebDriverElement[]>; | ||
/** | ||
* Take a screenshot of the whole page. | ||
* @returns Returns a base64 encoded png. | ||
*/ | ||
screenshot(): Promise<string>; | ||
} |
@@ -54,2 +54,12 @@ import type { Client } from "webdriver"; | ||
/** | ||
* Get the text for an element. | ||
* @returns The text. | ||
*/ | ||
getText(): Promise<string>; | ||
/** | ||
* Get the HTML for an element. | ||
* @returns The HTML. | ||
*/ | ||
getHTML(): Promise<string>; | ||
/** | ||
* Get an attribute for an element. | ||
@@ -60,2 +70,22 @@ * @param attribute The attribute to get. | ||
getAttribute(attribute: string): Promise<string>; | ||
/** | ||
* Is the element enabled. | ||
* @returns True if the element is enabled. | ||
*/ | ||
isEnabled(): Promise<boolean>; | ||
/** | ||
* Is the element displayed. | ||
* @returns True if the element is displayed. | ||
*/ | ||
isDisplayed(): Promise<boolean>; | ||
/** | ||
* Is the element selected. | ||
* @returns True if the element is selected. | ||
*/ | ||
isSelected(): Promise<boolean>; | ||
/** | ||
* Take a screenshot of the element. | ||
* @returns Returns a base64 encoded png. | ||
*/ | ||
screenshot(): Promise<string>; | ||
} |
@@ -74,2 +74,7 @@ import { type ThenableWebDriver } from "selenium-webdriver"; | ||
findElements(locator: LocatorTypes, value: string): Promise<IWebDriverElement[]>; | ||
/** | ||
* Take a screenshot of the whole page. | ||
* @returns Returns a base64 encoded png. | ||
*/ | ||
screenshot(): Promise<string>; | ||
} |
@@ -48,2 +48,12 @@ import type { ThenableWebDriver, WebElement } from "selenium-webdriver"; | ||
/** | ||
* Get the text for an element. | ||
* @returns The text. | ||
*/ | ||
getText(): Promise<string>; | ||
/** | ||
* Get the HTML for an element. | ||
* @returns The HTML. | ||
*/ | ||
getHTML(): Promise<string>; | ||
/** | ||
* Get an attribute for an element. | ||
@@ -54,2 +64,22 @@ * @param attribute The attribute to get. | ||
getAttribute(attribute: string): Promise<string>; | ||
/** | ||
* Is the element enabled. | ||
* @returns True if the element is enabled. | ||
*/ | ||
isEnabled(): Promise<boolean>; | ||
/** | ||
* Is the element displayed. | ||
* @returns True if the element is displayed. | ||
*/ | ||
isDisplayed(): Promise<boolean>; | ||
/** | ||
* Is the element selected. | ||
* @returns True if the element is selected. | ||
*/ | ||
isSelected(): Promise<boolean>; | ||
/** | ||
* Take a screenshot of the element. | ||
* @returns Returns a base64 encoded png. | ||
*/ | ||
screenshot(): Promise<string>; | ||
} |
@@ -208,2 +208,7 @@ import type { IWebDriverElement } from "../models/IWebDriverElement"; | ||
static getElementAttributeByPath<T>(path: string, attribute: string): Promise<T>; | ||
/** | ||
* Take a screenshot of the whole page. | ||
* @returns Returns a base64 encoded png. | ||
*/ | ||
static screenshot(): Promise<string>; | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
232023
2751