how can I simulate the action of dragging and dropping a file from the filesystem to an element that has a ondrag event trigger?
As for the normale "file" input, I was able to set the value of the input with jQuery. Can't I create a javascript File object or use any similar hack?
Thanks
Thanks
Selenium only works with your web browser. If you are opening something other than a web browser such as file browser you cannot interact with it. Drag and drops work with items within a web browser but not from program such as Windows Explorer or a Linux file explorer to a web browser. Create and element in your browser with jQuery and drag and drop it.
Selenium python: simulate file drag