Frames, Shadow DOM & Scoping

Switch To Element

Sets the element search root to the current element.

Sets the element search root to the current element.

Sets the element search root to the current element.

Examples

GPAL Fluent: High-level fluent C# API

browser.InElement("#container");

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.SwitchToElement("#container").Execute();

REST Client: Direct REST/HTTP client

GPAL.OttoMagicClient.SwitchToElement("#container").Execute();