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
ILoggerFactoryLogger factory.
Properties
Process
Gets the process, if any was created by this launcher.
public LauncherBase Process { get; }
Property Value
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
ConnectOptionsOptions for connecting.
Returns
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
LaunchOptionsOptions for launching the browser.
Returns
Remarks
See this article for a description of the differences between Chromium and Chrome. This article describes some differences for Linux users.