Skip to main content

screenshot

codebolt.browser.screenshot(): void
Takes a screenshot of the current page.

Status

Comming soon...

Example


// Navigate to the page you want to capture
await codebolt.browser.goToPage("https://example.com");

// Take a screenshot of the current page
codebolt.browser.screenshot();

Explanation:

The codebolt.browser.screenshot() function is used to capture a screenshot of the current page displayed in the browser. This function is helpful for various purposes such as visual verification, debugging, or generating documentation.