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

title

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

url

Get the current URL. Upstream docs
result
string
Return value
await page.url();

content

Get the full HTML content of the page. Upstream docs
result
string
Return value
await page.content();

setContent

Set the HTML content of the page. Upstream docs
html
string
required
options
PlaywrightSetContentOptions
await page.setContent('...');

viewportSize

Get the viewport size. Upstream docs
result
PlaywrightViewportSize | null
Return value
await page.viewportSize();

isClosed

Check if the page is closed. Upstream docs
result
boolean
Return value
await page.isClosed();