UNPKG

@openfin/automation-helpers

Version:

Helper methods for automation testing in the OpenFin ecosystem

23 lines (22 loc) 969 B
import type { Client } from "webdriver"; import type { IWebDriverWindow } from "../models/IWebDriverWindow"; import { BaseWebDriverWindow } from "./baseWebDriverWindow"; /** * Webdriver window for the Node environment. */ export declare class NodeWebDriverWindow extends BaseWebDriverWindow<Client> implements IWebDriverWindow { /** * Switch to the window handle and catch exceptions. * @param client The client to use for switching. * @param handle The window to switch to. * @param activateNativeWindow Activate the native window as well. * @returns True if switched to the window. */ static safeSwitchToWindow(client: Client, handle: string, activateNativeWindow?: boolean): Promise<boolean>; /** * Switch to the window. * @param activateNativeWindow Activate the native window as well. * @returns True if the switch was successful. */ switchTo(activateNativeWindow?: boolean): Promise<boolean>; }