3

I need to call AutoIt functions from a Protractor script (to open Notepad and copy its text, because I am not able to do so using just a Protractor script).

How to call AutoIt functions from a Protractor script?

Josiah Keller
  • 3,635
  • 3
  • 23
  • 35

1 Answers1

1

Instead of opening the notepad and copying a text from it (which itself introduces a dependency and make the testing much less reliable), read the file directly from javascript (you can do it in, for example, onPrepare() function in your protractor config) - fs module should help here, see:

Community
  • 1
  • 1
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195