Skip to main content
Page navigation methods for the Playwright driver.

goto

Navigate to a URL. Upstream docs
url
string
required
options
PlaywrightGotoOptions
result
PlaywrightResponse | null
Return value
await page.goto('...');

reload

Reload the page. Upstream docs
options
PlaywrightNavigationOptions
result
PlaywrightResponse | null
Return value
await page.reload();

goBack

Navigate back in history. Upstream docs
options
PlaywrightNavigationOptions
result
PlaywrightResponse | null
Return value
await page.goBack();

goForward

Navigate forward in history. Upstream docs
options
PlaywrightNavigationOptions
result
PlaywrightResponse | null
Return value
await page.goForward();

waitForURL

Wait for the main frame to navigate to the given URL. Upstream docs
url
string | RegExp | ((url: URL) => boolean)
required
options
PlaywrightWaitForURLOptions
await page.waitForURL(/* string | RegExp | ((url: URL) => boolean) */);

waitForLoadState

Wait for the required load state to be reached.
State can be ‘load’, ‘domcontentloaded’, or ‘networkidle’.
Upstream docs
state
LoadState
options
PlaywrightWaitForLoadStateOptions
await page.waitForLoadState();

waitForNavigation

Wait for the main frame navigation and return the main resource response.
Deprecated: This method is inherently racy. Use page.waitForURL() instead.
Upstream docs
options
PlaywrightWaitForNavigationOptions
result
PlaywrightResponse | null
Return value
await page.waitForNavigation();