## getId Get page id Returns **[String][1]** ## getName Get page name Returns **[String][1]** ## setName Update page name ### Parameters * `name` **[String][1]** New page name ### Examples ```javascript page.setName('New name'); ``` ## getAllFrames Get all frames ### Examples ```javascript const arrayOfFrames = page.getAllFrames(); ``` Returns **[Array][2]\** ## 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/String [2]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array