AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.16.1-alpha-167" />

.NET API 880,128 bytes

 FormExtensions

public static class FormExtensions
A set of useful extension methods when dealing with the DOM.
public static IHtmlFormElement SetValues(this IHtmlFormElement form, IDictionary<string, string> fields, bool createMissing = false)

Set the field values of given form by using the dictionary which contains name value pairs of input fields.

public static Task<IDocument> SubmitAsync(this IHtmlFormElement form, object fields)

Submits the given form by decomposing the object into a dictionary that contains its properties as name value pairs.

public static Task<IDocument> SubmitAsync(this IHtmlFormElement form, IDictionary<string, string> fields, bool createMissing = false)

Submits the given form by using the dictionary which contains name value pairs of input fields to submit.

public static Task<IDocument> SubmitAsync(this IHtmlElement element, object fields = null)

Submits the form of the element by decomposing the object into a dictionary that contains its properties as name value pairs.

public static Task<IDocument> SubmitAsync(this IHtmlElement element, IDictionary<string, string> fields, bool createMissing = false)

Submits the form of the element by using the dictionary which contains name value pairs of input fields to submit.