# getId

Get page id

Returns String (opens new window)

# getName

Get page name

Returns String (opens new window)

# setName

Update page name

# Parameters

# Examples

page.setName('New name');

# getAllFrames

Get all frames

# Examples

const arrayOfFrames = page.getAllFrames();

Returns Array (opens new window)<Frame>

# getMainFrame

Get the first frame of the page (identified always as the main one)

# Examples

const mainFrame = page.getMainFrame();

Returns Frame

# getMainComponent

Get the root component (usually is the wrapper component) from the main frame

# Examples

const rootComponent = page.getMainComponent();
console.log(rootComponent.toHTML());

Returns Component