Interaction

Drag And Drop

Drag the selected element by a given offset.

Drag the selected element by a given offset.

Performs a drag-and-drop gesture on the matched element, moving it by the specified horizontal and vertical pixel deltas. The deltas and all required coordinate information is encoded in the selector X/Y, OffsetX/Y and DeltaX/Y.

Examples

GPAL Fluent: High-level fluent C# API

browser.WithSelector(selector).DragAndDrop();

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.DragAndDrop("element123", 100, 50);

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.DragAndDrop(selector).WithDeltaX(100).WithDeltaY(50).Execute();

REST Client: Direct REST/HTTP client

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.DragAndDrop).WithElementId(selector).WithDeltaX(100).WithDeltaY(50).Execute();