Example #1
0
 /// <summary>
 /// Asynchronously continues an intercepted network call using authentication.
 /// </summary>
 /// <param name="requestData">The <see cref="HttpRequestData"/> of the network request.</param>
 /// <param name="userName">The user name with which to authenticate.</param>
 /// <param name="password">The password with which to authenticate.</param>
 /// <returns>A task that represents the asynchronous operation.</returns>
 public override async Task ContinueWithAuth(HttpRequestData requestData, string userName, string password)
 {
     await fetch.ContinueWithAuth(new ContinueWithAuthCommandSettings()
     {
         AuthChallengeResponse = new OpenQA.Selenium.DevTools.V85.Fetch.AuthChallengeResponse()
         {
             Response = OpenQA.Selenium.DevTools.V85.Fetch.AuthChallengeResponseResponseValues.ProvideCredentials,
             Username = userName,
             Password = password
         }
     });
 }
Example #2
0
 /// <summary>
 /// Asynchronously continues an intercepted network call using authentication.
 /// </summary>
 /// <param name="requestId">The ID of the network request for which to continue with authentication.</param>
 /// <param name="userName">The user name with which to authenticate.</param>
 /// <param name="password">The password with which to authenticate.</param>
 /// <returns>A task that represents the asynchronous operation.</returns>
 public override async Task ContinueWithAuth(string requestId, string userName, string password)
 {
     await fetch.ContinueWithAuth(new ContinueWithAuthCommandSettings()
     {
         RequestId             = requestId,
         AuthChallengeResponse = new V88.Fetch.AuthChallengeResponse()
         {
             Response = V88.Fetch.AuthChallengeResponseResponseValues.ProvideCredentials,
             Username = userName,
             Password = password
         }
     });
 }