So I created with AutoIT couple of automated scripts for some windows manipulation that I need for my tests and also couple of powershell scripts and I can execute them BUT
If I have more then one function in test that executes these scripts my steps start mixing up and execution is not waiting for these steps with scripts to be executed.
It just executed them all asynchronously now.
Do you know if it’s possible to make them execute synchronously or better yet to wait until these scripts are executed without using I.wait?
Nice to see you that you are using autoIT package for windows manipulation.!!
I’m new to auotIT in JS stack and getting error while installing the npm install --save autoit package.
Seems to be package dependency ‘node-gyp’ required(installed firstname.lastname@example.org) but still throwing error as below.
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! node -v v12.16.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! email@example.com install: node-gyp rebuild
npm ERR! Exit status 1
can you please help me on unblock installation issue specific to autoIT.
So I gave up on using JS AutoIt library because of version incompatibilities but you can create script on your own and just call it in your tests:
just create async method and call it like