Skip to content

Running Launcher.LaunchAsync() with LaunchOptions Browser = SupportedBrowser.ChromeHeadlessShell crashes #2967

@mrawohl

Description

@mrawohl

Tried with nuget package version 20.2.2. using NET8.0 platform.

When trying to run await Launcher.LaunchAsync(new LaunchOptions() { Browser = SupportedBrowser.ChromeHeadlessShell }; the call is crashing with an inner ArgumentException with message: "Invalid browser". The cause can easily be tracked within Launcher.cs in line 72 as a default result of a switch-case statement, which is checking for the LaunchOptions.Browser property. Seems like, the case SupportedBrowser.ChromeHeadlessShell has been forgotten as it is implemented in the previous switch-case statement in line 61.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions