Frames, Shadow DOM & Scoping

Switch To Frame

Switches the Puppeteer session's execution context into the iframe matching the given selector, so subsequent commands target that frame.

WARNING

Not used by OttoMagic, which already runs in every frame - no REST endpoint will work if this is used. This is a Puppeteer-only endpoint, called internally by Browser.InElement/InIframe when using Puppeteer.

Examples

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.SwitchToFrame("#iframe-selector").Execute();

💬 Ask GPAL