Esempio n. 1
0
 /// <summary>
 /// Submits the given form by using the dictionary which contains name
 /// value pairs of input fields to submit.
 /// </summary>
 /// <param name="form">The form to submit.</param>
 /// <param name="fields">The fields to use as values.</param>
 /// <param name="createMissing">
 /// What to do if some field(s) have not been found in the form. If
 /// true, then new input will be created. Otherwise, an exception will
 /// be thrown.
 /// </param>
 /// <returns>The task eventually resulting in the response.</returns>
 public static Task <IDocument> SubmitAsync(this IHtmlFormElement form, IDictionary <String, String> fields, Boolean createMissing = false)
 {
     form.SetValues(fields, createMissing);
     return(form.SubmitAsync());
 }