Get page id
Returns String
Get page name
Returns String
Update page name
name
String New page name
page.setName('New name');
Get all frames
const arrayOfFrames = page.getAllFrames();
Returns Array<Frame>
Get the first frame of the page (identified always as the main one)
const mainFrame = page.getMainFrame();
Returns Frame
Get the root component (usually is the wrapper
component) from the main frame
const rootComponent = page.getMainComponent();
console.log(rootComponent.toHTML());
Returns Component