Interaction

Middle Click

Web elements are specified using either CSS or XPath.

Examples

GPAL Fluent: High-level fluent C# API

browser.WithSelector(selector).MiddleClick()

browser.MiddleClick(selector)

MagicHelper: MagicHelper utility library

browser.MagicHelper.MiddleClick(string css);

browser.MagicHelper.MiddleClick(string xpath);

Puppeteer Client: Puppeteer-style C# client

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

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

Puppeteer Communicator: Low-level communicator

//Scrolls each match into view before clicking it, the same as RightClick beside it. The client resolves its own elements and can be handed them already found, which is why it does the loop itself rather than calling this.

await browser.PuppeteerCommunicator.MiddleClick(string elementId, string sessionId);

REST Client: Direct REST/HTTP client

browser.OttoMagicClient.WithEndpoint(ApiEndpoint.MiddleClick).WithCss(string css).Execute();

browser.OttoMagicClient.WithEndpoint(ApiEndpoint.MiddleClick).WithXPath(string xpath).Execute();

💬 Ask GPAL