GPAL
  • Concepts
  • Tutorials
  • Library
  • Endpoints
  • API
  • OttoMagic
  • Services
v1.0.0
Browser Automation
  • Casting
  • Frames, Shadow DOM & Scoping
  • Element Info & Attributes
  • Element Lookup & Evaluation
  • Interaction
  • Navigation
  • Network & Downloads
  • Scripting
  • Storage
  • Studio & Workflow Tools
  • Tabs & Windows
  • Window & Viewport

Frames, Shadow DOM & Scoping

  • In Element
  • In Iframe
  • In Shadow Dom
  • Switch To Default Content
  • Switch To Element
  • Switch To Frame
  • Switch To Shadow Root

Browser Automation

In Element

Scope subsequent selectors to within a given element.

In Iframe

Scope subsequent selectors to inside an iframe.

In Shadow Dom

Scope subsequent selectors to inside a shadow DOM.

Switch To Default Content

Sets the element search root to the full document.

Switch To Element

Sets the element search root to the current element.

Switch To Frame

Switch Puppeteer's execution context into an iframe.

Switch To Shadow Root

Sets the element search root to the current element's shadow root.

On this page


Browser Automation
In Element
In Iframe
In Shadow Dom
Switch To Default Content
Switch To Element
Switch To Frame
Switch To Shadow Root

GPAL

Generally Positive Automation Library

Get Started Library Desktop Viewer

Learn More

Contact Us

GPAL License

About GPAL

FAQs


Bug Reports

Report a bug


Software Decisions Inc © 2026 Copyright
X