Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exec is not a function Error arises #46

Open
vitaliy4us opened this issue Dec 26, 2022 · 0 comments
Open

Exec is not a function Error arises #46

vitaliy4us opened this issue Dec 26, 2022 · 0 comments

Comments

@vitaliy4us
Copy link

I am trying to implement node-key-sender in my Cypress automation test for generating "ctrl+w" combination for closing browser tab. Unfortunately the commands
const ks = require('node-key-sender'); ks.sendCombination(['control', 'w']);
results "exec is not a function" error:

`node_modules/node-key-sender/key-sender.js:117:1
115 | var command = 'java -jar "' + jarPath + '" ' + arrParams.join(' ') + module.getCommandLineOptions();
116 |

117 | return exec(command, {}, function(error, stdout, stderr) {
| ^
118 | if (error == null) {
119 | resolve(stdout, stderr);
120 | } else {`

JRE is installed on my Windows machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant