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.
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.
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.