mirror of
https://github.com/Mintplex-Labs/nut.js.git
synced 2026-07-16 09:34:33 -04:00
Added small timeouts to account for possibly slow window movement
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import {sleep} from "../../../../lib/sleep.function";
|
||||
|
||||
const Application = require("spectron").Application;
|
||||
const electronPath = require("electron");
|
||||
const {getActiveWindow, getWindows} = require("@nut-tree/nut-js");
|
||||
const { POS_X, POS_Y, WIDTH, HEIGTH, TITLE } = require("./constants");
|
||||
const { join } = require("path");
|
||||
const {POS_X, POS_Y, WIDTH, HEIGTH, TITLE} = require("./constants");
|
||||
const {join} = require("path");
|
||||
|
||||
const sleep = async (ms) => {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
};
|
||||
|
||||
let app;
|
||||
const APP_TIMEOUT = 10000;
|
||||
|
||||
Reference in New Issue
Block a user