New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@openfin/automation-helpers

Package Overview
Dependencies
Maintainers
42
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openfin/automation-helpers - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

typings/models/windowLocatorValueTypes.d.ts

8

package.json
{
"name": "@openfin/automation-helpers",
"version": "0.1.6",
"version": "0.1.7",
"description": "Helper methods for automation testing in the OpenFin ecosystem",
"authors": [
"Martyn Janes <martyn.janes@openfin.co>"
],
"author": "martyn.janes@openfin.co",
"license": "MIT",

@@ -18,3 +16,3 @@ "keywords": [

"build-compile": "tsc",
"build-p": "run-p build-lint build-compile",
"build-p": "run-p build-lint build-compile --aggregate-output",
"build": "run-s build-clean build-p",

@@ -21,0 +19,0 @@ "format": "prettier --config .prettierrc src/**/* --write",

@@ -7,5 +7,7 @@ export * from "./globals";

export * from "./models/windowLocatorTypes";
export * from "./models/windowLocatorValueTypes";
export * from "./openFin/home";
export * from "./openFin/interApplicationBus";
export * from "./openFin/me";
export * from "./openFin/notifications";
export * from "./openFin/store";

@@ -12,0 +14,0 @@ export * from "./openFin/system";

@@ -5,2 +5,3 @@ import type { IWebDriverElement } from "./IWebDriverElement";

import type { WindowLocatorTypes } from "./windowLocatorTypes";
import type { WindowLocatorIdentityStringValueTypes, WindowLocatorIdentityValueTypes, WindowLocatorValueTypes } from "./windowLocatorValueTypes";
/**

@@ -60,8 +61,32 @@ * Web driver interface.

* @param locator The locator type.
* @param value The window locator value to use.
* @param locatorValue The window locator value to use.
* @returns True if the window was available.
* @see https://w3c.github.io/webdriver/#dfn-switch-to-window
*/
switchToWindow(locator: WindowLocatorTypes, value: string | RegExp): Promise<boolean>;
switchToWindow(locator: "title" | "url" | "handle" | "identityString", locatorValue: string | RegExp | (string | RegExp)[]): Promise<boolean>;
/**
* 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.
* @see https://w3c.github.io/webdriver/#dfn-switch-to-window
*/
switchToWindow(locator: "identity", locatorValue: WindowLocatorIdentityValueTypes): Promise<boolean>;
/**
* 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.
* @see https://w3c.github.io/webdriver/#dfn-switch-to-window
*/
switchToWindow(locator: "identityString", locatorValue: WindowLocatorIdentityStringValueTypes): Promise<boolean>;
/**
* 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.
* @see https://w3c.github.io/webdriver/#dfn-switch-to-window
*/
switchToWindow(locator: WindowLocatorTypes, locatorValue: WindowLocatorValueTypes): Promise<boolean>;
/**
* Find an element.

@@ -68,0 +93,0 @@ * @param locator The locator to use when finding the element.

/**
* The window locator types.
*/
export declare type WindowLocatorTypes = "title" | "url" | "handle" | "identity";
export declare type WindowLocatorTypes = "title" | "url" | "handle" | "identity" | "identityString";

@@ -45,2 +45,8 @@ import type OpenFin from "@openfin/core";

static waitForWindow(name: string, timeoutMs: number): Promise<boolean>;
/**
* Launch a manifest.
* @param manifest The manifest url to launch.
* @returns Nothing.
*/
static launchManifest(manifest: string): Promise<void>;
}

@@ -7,2 +7,3 @@ import { type Client } from "webdriver";

import type { WindowLocatorTypes } from "../models/windowLocatorTypes";
import type { WindowLocatorValueTypes } from "../models/windowLocatorValueTypes";
/**

@@ -71,6 +72,6 @@ * NodeWebDriver for the Node environment.

* @param locator The locator type.
* @param value The window locator value to use.
* @param locatorValue The window locator value to use.
* @returns True if the window was available.
*/
switchToWindow(locator: WindowLocatorTypes, value: string | RegExp): Promise<boolean>;
switchToWindow(locator: WindowLocatorTypes, locatorValue: WindowLocatorValueTypes): Promise<boolean>;
/**

@@ -77,0 +78,0 @@ * Find an element.

@@ -7,2 +7,3 @@ import { type ThenableWebDriver } from "selenium-webdriver";

import type { WindowLocatorTypes } from "../models/windowLocatorTypes";
import type { WindowLocatorValueTypes } from "../models/windowLocatorValueTypes";
/**

@@ -71,6 +72,6 @@ * Webdriver for the Selenium environment.

* @param locator The locator type.
* @param value The window locator value to use.
* @param locatorValue The window locator value to use.
* @returns True if the window was available.
*/
switchToWindow(locator: WindowLocatorTypes, value: string | RegExp): Promise<boolean>;
switchToWindow(locator: WindowLocatorTypes, locatorValue: WindowLocatorValueTypes): Promise<boolean>;
/**

@@ -77,0 +78,0 @@ * Find an element.

@@ -5,2 +5,3 @@ import type { IWebDriverElement } from "../models/IWebDriverElement";

import type { WindowLocatorTypes } from "../models/windowLocatorTypes";
import type { WindowLocatorValueTypes } from "../models/windowLocatorValueTypes";
/**

@@ -72,6 +73,6 @@ * Global webdriver wrapper with non driver specific code.

* @param locator The locator type.
* @param value The window locator value to use.
* @param locatorValue The window locator value to use.
* @returns True if the window was available.
*/
static switchToWindow(locator: WindowLocatorTypes, value: string | RegExp): Promise<boolean>;
static switchToWindow(locator: WindowLocatorTypes, locatorValue: WindowLocatorValueTypes): Promise<boolean>;
/**

@@ -78,0 +79,0 @@ * Wait for a window by its locator.

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc