@openfin/automation-native
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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

Related Packages

Package Sidebar

Install

npm i @openfin/automation-native

Weekly Downloads

47

Version

1.2.0

License

SEE LICENSE IN LICENSE.MD

Unpacked Size

13.6 kB

Total Files

9

Last publish

Collaborators

  • ameet-openfin
  • jmransegnola
  • marek_openfin
  • yoge-openfin
  • nil.ffej
  • gilesstevenson-openfin
  • eheyder
  • newaz.sharif
  • efraim-herstic
  • royhafin
  • openfincolinhu
  • openfin-johans
  • alan15008
  • openfin-ci-gh
  • hina-khalid
  • ife-dev1
  • mjosling
  • elliott.burr
  • vsaw3
  • gallak-openfin
  • galim.kaudinov
  • hzhi0209
  • andy.westacott
  • __tomasz__
  • cameronopenfin
  • jennrondeau
  • dhilan
  • benstubbington
  • davidcoxon-of
  • openfin-jeff
  • gouthamc
  • hannahmcmillen
  • xyopenfin
  • smocarski
  • eugeneross-openfin
  • imansuri
  • manamiueda
  • sakibahmad
  • shahossain
  • openfinbrandon
  • pierrebaize
  • noyangunday
  • michaelmcoates
  • johnmandia-openfin
  • rdepena
  • tgoc99
  • wenjunche
  • harsimran.openfin.singh
  • luiemilio
  • licui3936
  • connormccafferty
  • adam.saland
  • openfin-ci
  • chrishobsonexpero
  • richbrowne-openfin
  • azizyok
  • openfin-gavin
  • oblarg