Skip to main content
Frame page info methods for the Playwright driver.

url

Returns frame’s URL. Upstream docs
result
string
Return value
await frame.url();

title

Returns the page title. Upstream docs
result
string
Return value
await frame.title();

content

Gets the full HTML contents of the frame, including the doctype. Upstream docs
result
string
Return value
await frame.content();

setContent

Sets the content of the frame.
This method takes the HTML to set as the frame’s content. The default waitUntil is ‘load’.
Upstream docs
html
string
required
options
{ timeout?: number; waitUntil?: "load" | "domcontentloaded" | "networkidle" | "commit" }
await frame.setContent('...');