Skip to content

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

native-ui-toolkit

Native UI testing / controlling with node.js

Installation

Using npm:

npm i --save native-ui-toolkit

Example

const nut = require("native-ui-toolkit");

console.log(nut.Screen.location("./docker.png"));
nut.Mouse.move(nut.Movement.straightTo(nut.Location.centerOf(nut.Screen.location("./file.png"))));
nut.Mouse.leftClick();
nut.Mouse.move(nut.Movement.straightTo(nut.Location.centerOf(nut.Screen.location("./save.png"))));
nut.Mouse.leftClick();
nut.Mouse.move(nut.Movement.down(220));
nut.Mouse.leftClick();

nut.Mouse.move(nut.Movement.straightTo(nut.Location.randomPointAt(nut.Screen.location("./docker.png"))));

for (let idx = 0; idx < 5; ++idx) {
  nut.Mouse.move(nut.Movement.up(50));
  nut.Mouse.leftClick();
}

Releases

Sponsor this project

Packages

Used by

Contributors

Languages