Docs · API reference · Motus.Abstractions

LaunchOptions Class#

Options for launching a browser instance.

public sealed record LaunchOptions : System.IEquatable<Motus.Abstractions.LaunchOptions>

Inheritance System.Object → LaunchOptions

Implements System.IEquatable<LaunchOptions>

Properties#

Accessibility Property#

Accessibility audit hook configuration. Disabled by default.

public Motus.Abstractions.AccessibilityOptions? Accessibility { get; init; }

Property Value#

AccessibilityOptions

Args Property#

Additional command-line arguments to pass to the browser.

public System.Collections.Generic.IReadOnlyList<string>? Args { get; init; }

Property Value#

System.Collections.Generic.IReadOnlyList<System.String>

Channel Property#

The browser distribution channel to use.

public System.Nullable<Motus.Abstractions.BrowserChannel> Channel { get; init; }

Property Value#

System.Nullable<BrowserChannel>

Coverage Property#

Code coverage collector configuration. Disabled by default.

public Motus.Abstractions.CoverageOptions? Coverage { get; init; }

Property Value#

CoverageOptions

DownloadsPath Property#

Path to a folder for browser downloads.

public string? DownloadsPath { get; init; }

Property Value#

System.String

ExecutablePath Property#

Path to a browser executable to use instead of the bundled one.

public string? ExecutablePath { get; init; }

Property Value#

System.String

HandleSIGINT Property#

Whether the browser is closed when this process is interrupted, which means SIGINT on Unix and Ctrl+C on Windows.

public bool HandleSIGINT { get; init; }

Property Value#

System.Boolean

HandleSIGTERM Property#

Whether the browser is closed when this process is asked to end, which means SIGTERM or SIGHUP. Unix only, since Windows has neither signal.

public bool HandleSIGTERM { get; init; }

Property Value#

System.Boolean

Headless Property#

Whether to run the browser in headless mode.

public bool Headless { get; init; }

Property Value#

System.Boolean

IgnoreDefaultArgs Property#

If specified, default arguments that should be filtered out.

public System.Collections.Generic.IReadOnlyList<string>? IgnoreDefaultArgs { get; init; }

Property Value#

System.Collections.Generic.IReadOnlyList<System.String>

Performance Property#

Performance metrics collector configuration. Disabled by default.

public Motus.Abstractions.PerformanceOptions? Performance { get; init; }

Property Value#

PerformanceOptions

Plugins Property#

Manually registered plugins to load into each browser context.

public System.Collections.Generic.IReadOnlyList<Motus.Abstractions.IPlugin>? Plugins { get; init; }

Property Value#

System.Collections.Generic.IReadOnlyList<IPlugin>

SlowMo Property#

Slows down operations by the specified number of milliseconds.

public int SlowMo { get; init; }

Property Value#

System.Int32

Timeout Property#

Maximum time in milliseconds to wait for the browser to start.

public int Timeout { get; init; }

Property Value#

System.Int32

UserDataDir Property#

Path to a user data directory for the browser profile.

public string? UserDataDir { get; init; }

Property Value#

System.String