testdriverai 4.0.15 → 4.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +8 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -748,7 +748,14 @@ ${yaml.dump(step)}
748
748
 
749
749
 
750
750
  const promptUser = () => {
751
- rl.prompt(true);
751
+ // Case where it doesn't execute the command but pastes the clipboard content
752
+ if (rl.on) {
753
+ rl.on('paste', () => {
754
+ const clipboardContent = require('clipboardy').readSync();
755
+ rl.write(clipboardContent);
756
+ });
757
+ }
758
+ rl.prompt(true);
752
759
  }
753
760
 
754
761
  const iffy = async (condition, then, otherwise, depth) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "4.0.15",
3
+ "version": "4.0.17",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {