UNPKG

@openfin/automation-helpers

Version:

Helper methods for automation testing in the OpenFin ecosystem

32 lines (31 loc) 1.1 kB
/** * Methods for OpenFin Notifications object handling. */ export declare class OpenFinNotifications { /** * Launch notifications with specific options, uses the CLI notifications option to determine version to load. * @param options The options for launching the manifest. * @param options.runtimeVersion The runtimeVersion to use in the manifest, leave blank for default. * @param options.realm The security realm to use, leave blank for no security realm. * @returns True if the launch was successful. */ static launch(options?: { runtimeVersion?: string; realm?: string; }): Promise<boolean>; /** * Toggle the notification center. * @returns True if the window was found and opened. */ static toggle(): Promise<boolean>; /** * Show the notification center. * @returns True if the window was found and opened. */ static show(): Promise<boolean>; /** * Hide the notification center. * @returns True if the window was found and opened. */ static hide(): Promise<boolean>; }