Interaction

Right Click And Download

Right-click a link/element and save the resulting download.

Right-click a link/element and save the resulting download.

Performs a right click on the matched element and captures the file that downloads as a result, saving it to the specified location.

Examples

GPAL Fluent: High-level fluent C# API

browser.WithSelector(linkSelector).RightClickAndDownload(gpalFile);

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.RightClickAndDownload("link123", filenameAndPath);

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.RightClickAndDownload(linkSelector).SaveTo(fileToSave).Execute();

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.RightClickAndDownload(elementId, savePath, sessionId);

REST Client: Direct REST/HTTP client

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.RightClickAndDownload).WithElementId(linkSelector).WithDownloadFile(savePath).Execute();