Interaction

Left Click And Download

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

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

Performs a left 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).LeftClickAndDownload(gpalFile);

MagicHelper: MagicHelper utility library

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

Puppeteer Client: Puppeteer-style C# client

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

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.LeftClickAndDownload(elems, savePath, modifiers, sessionId, responses);

REST Client: Direct REST/HTTP client

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