Table of Contents

Class Launcher

Namespace
PuppeteerSharp
Assembly
PuppeteerSharp.dll

Launcher controls the creation of processes or the connection remote ones.

public class Launcher
Inheritance
Launcher

Constructors

Launcher(ILoggerFactory)

Initializes a new instance of the Launcher class.

public Launcher(ILoggerFactory loggerFactory = null)

Parameters

loggerFactory ILoggerFactory

Logger factory.

Properties

Process

Gets the process, if any was created by this launcher.

public LauncherBase Process { get; }

Property Value

LauncherBase

Methods

ConnectAsync(ConnectOptions)

Attaches Puppeteer to an existing process instance. The browser will be closed when the Browser is disposed.

public Task<IBrowser> ConnectAsync(ConnectOptions options)

Parameters

options ConnectOptions

Options for connecting.

Returns

Task<IBrowser>

A connected browser.

LaunchAsync(LaunchOptions)

The method launches a browser instance with given arguments. The browser will be closed when the Browser is disposed.

public Task<IBrowser> LaunchAsync(LaunchOptions options)

Parameters

options LaunchOptions

Options for launching the browser.

Returns

Task<IBrowser>

A connected browser.

Remarks

See this article for a description of the differences between Chromium and Chrome. This article describes some differences for Linux users.