AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.11" />

 BrowsingContextExtensions

public static class BrowsingContextExtensions
A set of extensions for the browsing context.
public static void NavigateTo(this IBrowsingContext context, IDocument document)

Navigates to the given document. Includes the document in the session history and sets it as the active document.

public static Task<IDocument> OpenAsync(this IBrowsingContext context, IResponse response, CancellationToken cancel)

Opens a new document created from the response asynchronously in the given context.

public static Task<IDocument> OpenAsync(this IBrowsingContext context, DocumentRequest request, CancellationToken cancel)

Opens a new document loaded from the specified request asynchronously in the given context.

public static Task<IDocument> OpenAsync(this IBrowsingContext context, Url url, CancellationToken cancel)

Opens a new document loaded from the provided url asynchronously in the given context.

public static Task<IDocument> OpenAsync(this IBrowsingContext context, Action<VirtualResponse> request, CancellationToken cancel)

Opens a new document loaded from a virtual response that can be filled via the provided callback.

public static Task<IDocument> OpenAsync(this IBrowsingContext context, Action<VirtualResponse> request)

Opens a new document loaded from a virtual response that can be filled via the provided callback without any ability to cancel it.

public static Task<IDocument> OpenAsync(this IBrowsingContext context, Url url)

Opens a new document loaded from the provided url asynchronously in the given context without the ability to cancel it.

public static Task<IDocument> OpenAsync(this IBrowsingContext context, string address)

Opens a new document loaded from the provided address asynchronously in the given context.

public static Task<IDocument> OpenNewAsync(this IBrowsingContext context, string url = null)

Opens a new document without any content in the given context.