Parameters
- handle
Type: System.Int32
The handle of the window.
- fromX
Type: System.Int32
The x coordinate in the window for drag event.
- formY
Type: System.Int32
The y coordinate in the window for drag event.
- toX
Type: System.Int32
The x coordinate in the window for drop event.
- toY
Type: System.Int32
The y coordinate in the window for drop event.
Return Value
Type: System.String
The answer with information about the success of the current command's execution. If current command was successful then this answer is "ok"; otherwise message describing the error.
| C# | Copy Code |
|---|---|
// go to page with drag and drop element if (instance.ActiveTab.IsNull || instance.ActiveTab.IsVoid) return "Fail"; instance.ActiveTab.Navigate("dragdroppage.com"); // wait downloading if (instance.ActiveTab.IsBusy) instance.ActiveTab.WaitDownloading(); // do drag and drop event return Emulator.DragAndDrop(instance.ActiveTab.Handle, 100, 100, 200); | |
| PHP | Copy Code |
|---|---|
// go to page with drag and drop element if ($instance->ActiveTab->IsNull || $instance->ActiveTab->IsVoid) return "Fail"; $instance->ActiveTab->Navigate("dragdroppage.com"); // wait downloading if ($instance->ActiveTab->IsBusy) $instance->ActiveTab->WaitDownloading(); // do drag and drop event return ZennoLab\Emulation\Emulator::DragAndDrop($instance->ActiveTab->Handle, 100, 100, 200); | |