Interaction

Right Click

Web elements are specified using either CSS or XPath.

Examples

GPAL Fluent: High-level fluent C# API

browser.WithSelector(selector).RightClick()

browser.RightClick(selector)

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.RightClick(string css);

GPAL.MagicHelper.RightClick(string xpath);

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.RightClick(string css).Execute();

browser.PuppeteerClient.RightClick(string xpath).Execute();

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.RightClick(string css, string sessionId);

await browser.PuppeteerCommunicator.RightClick(string xpath, string sessionId);

REST Client: Direct REST/HTTP client

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.RightClick).WithCss(string css).Execute();

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.RightClick).WithXPath(string xpath).Execute();

💬 Ask GPAL