Skip to main content

goToPage

codebolt.browser.goToPage(url: string): Promise<GoToPageResponse>
Navigates to a specified URL.

Parameters

NameTypeDescription
urlstringThe URL to navigate to.

Example

//Navigate to a webpage using Codebolt's browser API
await codebolt.browser.goToPage('https://docs.codebolt.ai/docs/api/apiaccess/browser/goToPage/')

Explanation

The codebolt.browser.goToPage(url) function navigates the browser to a new web page specified by the URL parameter. When this function is called, the browser leaves the current page and loads the new page indicated by the URL. This is typically one of the first commands used in browser automation workflows.