puppeteer/docs/api/puppeteer.page.url.md

238 B

sidebar_label
Page.url

Page.url() method

The page's URL.

Signature:

class Page {
  url(): string;
}

Returns:

string

Remarks

Shortcut for page.mainFrame().url().