问题 I want to test file upload, by dragging file to the drop zone in the page, however I can't find a way to simulate file dragging from the desktop folder. The only way I managed to found is the following one - desktop.browser.actions().dragAndDrop(elem,target).mouseUp().perform();(Protractor) However as far as I can understand, it drags only css element. 回答1: This is a working example to simulate a file drop from the desktop to a drop area: const dropFile = require("./drop-file.js"); const EC =