H
H
hottab_12017-04-27 00:15:57
Angular
hottab_1, 2017-04-27 00:15:57

Simulation of all actions when uploading files in protractor e2e tests, how?

Hello!
I'm doing e2e testing of the site using protractor.
It is necessary to completely imitate the user's actions when uploading a file to the site.
The algorithm is as follows:
1. The page is opened
2. The "Download" button is pressed
3. A standard window appears with a choice of files to upload
4. A file is selected
5. The file is uploaded to the server
The problem and misunderstanding appear at step 3. I don't 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 mouse coordinates, where it should double click and is it even possible?
Tell me please. Perhaps someone has come across this.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question