Reputation: 774
I am clicking on a upload button which opens up a windows file selector. I am not able to write the path to a file in that File Selector dialog using protractor.
I tried copying the text to the clipboard and pasting the same to File Upload by passing ctrl+v keypress in protractor. Able to copy the text but paste is not working.
Now I have also used robot-js but not helping me Any idea how can we do this in protractor?
Upvotes: 0
Views: 1728
Reputation: 21
Send keys to the input element with your file path, it will do the same flow without opening the windows file pop up
Upvotes: 0