Skip to content

IPage

Namespace: PuppeteerSharp

public interface IPage : IDisposable, IAsyncDisposable

Provides methods to interact with a single tab in Chromium. One IBrowser instance might have multiple IPage instances.

Derived: BidiPage, CdpPage, Page

Example

This example creates a page, navigates it to a URL, and then saves a screenshot:

var browser = await Puppeteer.LaunchAsync(new LaunchOptions());
var page = await browser.NewPageAsync();
await page.GoToAsync("https://example.com");
await page.ScreenshotAsync("screenshot.png");
await browser.CloseAsync();

View source

Made with love by Dario Kondratiuk