Hello! I spend e2e testing site using protractor. It is necessary to completely simulate user actions when uploading a file to the site. The algorithm is as follows:
- Page opening occurs
- Press the "Download" button
- A standard window appears with a choice of files to download.
- File is selected
- The file is uploaded to the server.
The problem and not understanding appear in step 3. I do not understand how you can simulate mouse movement in the file selection window and double-click on the file to load it. How to calculate the coordinates of the mouse, where it should make a double click and is it even possible? Tell me please. Perhaps someone came across this.