## getAllFrames Get all frames ### Examples ```javascript const arrayOfFrames = page.getAllFrames(); ``` Returns **[Array][1]\** ## getMainFrame Get the first frame of the page (identified always as the main one) ### Examples ```javascript const mainFrame = page.getMainFrame(); ``` Returns **Frame** ## getMainComponent Get the root component (usually is the `wrapper` component) from the main frame ### Examples ```javascript const rootComponent = page.getMainComponent(); console.log(rootComponent.toHTML()); ``` Returns **Component** [1]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array