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:

  1. Page opening occurs
  2. Press the "Download" button
  3. A standard window appears with a choice of files to download.
  4. File is selected
  5. 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.

0