Network & File Transfers

Right Click And 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);

Puppeteer Client: Puppeteer-style C# client

//The PuppeteerClient call that names the destination is DownloadTo. It was SaveTo until August 2026.

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

Puppeteer Communicator: Low-level communicator

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

REST Client: Direct REST/HTTP client

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

💬 Ask GPAL