Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@openfin/automation-native

Package Overview
Dependencies
Maintainers
51
Versions
54
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

  • 0.3.10
  • npm
  • Socket score

Version published
Weekly downloads
95
decreased by-24.6%
Maintainers
51
Weekly downloads
 
Created
Source

Automation Native

This package contains helper methods which can be use in automation testing to interact with native OS.

They should be used in a test runner to interactive with the desktop capabilities 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 }}
        ]);
    });
});

Keywords

FAQs

Package last updated on 12 Jan 2023

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

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