BrowsingContextExtensions
A set of extensions for the browsing context.
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.
Opens a new document loaded from the provided url asynchronously in
the given context without the ability to cancel it.
Opens a new document loaded from the provided address asynchronously
in the given context.
Opens a new document without any content in the given context.