Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

@openfin/automation-native

Package Overview
Dependencies
Maintainers
59
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openfin/automation-native

Helper methods for native testing in the OpenFin ecosystem

npmnpm
Version
1.3.0-alpha-002
Version published
Weekly downloads
5
-84.37%
Maintainers
59
Weekly downloads
 
Created
Source

Automation Native

This package contains helper methods which can be use in automation testing to interact with native OS UI elements, such as context menus.

They should be used in a test runner to perform mouse and keyboard input e.g. @openfin/automation-cli

Installation

Run npm i @openfin/automation-native.

Code examples

import { NativeDriver, NativeDriverKeys } from "@openfin/automation-native";

describe('Test Suite', () => {
    it('Send mouse click to a location on screen', async () => {
        await NativeDriver.actions([
            { type: "mousePress", { x: 100, y: 100}}
        ]);
    });

    it('Send key press to the desktop', async () => {
        await NativeDriver.actions([
            { type: "keyPress", { key: NativeDriverKeys.A }}
        ]);
    });
});

OpenFin Debugging

For more information on debugging in OpenFin see https://developers.openfin.co/of-docs/docs/debugging

Keywords

openfin

FAQs

Package last updated on 16 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts