Cross Application Drag and Drop
Posted: Thu Feb 12, 2015 8:46 pm
Hi there,
I want to drag and drop from my desktop or any windows folder, to my browser, to test our file upload form. Everything is ok, the code seems to work, but when the mouse moves to the browser, looks like it loses the file.
Here is an example:
I can drop from a corner in my desktop to its center, but when I try to drop it on browser, doesn't work.
Any suggestion ?
Thanks in advance.
I want to drag and drop from my desktop or any windows folder, to my browser, to test our file upload form. Everything is ok, the code seems to work, but when the mouse moves to the browser, looks like it loses the file.
Here is an example:
Code: Select all
repo.Desktop.File.MoveTo();
Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
repo.Browser.Container.MoveTo();
Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
Any suggestion ?
Thanks in advance.