1
- // <copyright file="V106Network .cs" company="WebDriver Committers">
1
+ // <copyright file="V109Network .cs" company="WebDriver Committers">
2
2
// Licensed to the Software Freedom Conservancy (SFC) under one
3
3
// or more contributor license agreements. See the NOTICE file
4
4
// distributed with this work for additional information
20
20
using System . Collections . Generic ;
21
21
using System . Text ;
22
22
using System . Threading . Tasks ;
23
- using OpenQA . Selenium . DevTools . V106 . Fetch ;
24
- using OpenQA . Selenium . DevTools . V106 . Network ;
23
+ using OpenQA . Selenium . DevTools . V109 . Fetch ;
24
+ using OpenQA . Selenium . DevTools . V109 . Network ;
25
25
26
- namespace OpenQA . Selenium . DevTools . V106
26
+ namespace OpenQA . Selenium . DevTools . V109
27
27
{
28
28
/// <summary>
29
- /// Class providing functionality for manipulating network calls using version 106 of the DevTools Protocol
29
+ /// Class providing functionality for manipulating network calls using version 109 of the DevTools Protocol
30
30
/// </summary>
31
- public class V106Network : DevTools . Network
31
+ public class V109Network : DevTools . Network
32
32
{
33
33
private FetchAdapter fetch ;
34
34
private NetworkAdapter network ;
35
35
36
36
/// <summary>
37
- /// Initializes a new instance of the <see cref="V106Network "/> class.
37
+ /// Initializes a new instance of the <see cref="V109Network "/> class.
38
38
/// </summary>
39
39
/// <param name="network">The adapter for the Network domain.</param>
40
40
/// <param name="fetch">The adapter for the Fetch domain.</param>
41
- public V106Network ( NetworkAdapter network , FetchAdapter fetch )
41
+ public V109Network ( NetworkAdapter network , FetchAdapter fetch )
42
42
{
43
43
this . network = network ;
44
44
this . fetch = fetch ;
@@ -80,12 +80,12 @@ public override async Task DisableNetwork()
80
80
/// <returns>A task that represents the asynchronous operation.</returns>
81
81
public override async Task EnableFetchForAllPatterns ( )
82
82
{
83
- await fetch . Enable ( new OpenQA . Selenium . DevTools . V106 . Fetch . EnableCommandSettings ( )
83
+ await fetch . Enable ( new OpenQA . Selenium . DevTools . V109 . Fetch . EnableCommandSettings ( )
84
84
{
85
- Patterns = new OpenQA . Selenium . DevTools . V106 . Fetch . RequestPattern [ ]
85
+ Patterns = new OpenQA . Selenium . DevTools . V109 . Fetch . RequestPattern [ ]
86
86
{
87
- new OpenQA . Selenium . DevTools . V106 . Fetch . RequestPattern ( ) { UrlPattern = "*" , RequestStage = RequestStage . Request } ,
88
- new OpenQA . Selenium . DevTools . V106 . Fetch . RequestPattern ( ) { UrlPattern = "*" , RequestStage = RequestStage . Response }
87
+ new OpenQA . Selenium . DevTools . V109 . Fetch . RequestPattern ( ) { UrlPattern = "*" , RequestStage = RequestStage . Request } ,
88
+ new OpenQA . Selenium . DevTools . V109 . Fetch . RequestPattern ( ) { UrlPattern = "*" , RequestStage = RequestStage . Response }
89
89
} ,
90
90
HandleAuthRequests = true
91
91
} ) ;
@@ -208,9 +208,9 @@ public override async Task ContinueWithAuth(string requestId, string userName, s
208
208
await fetch . ContinueWithAuth ( new ContinueWithAuthCommandSettings ( )
209
209
{
210
210
RequestId = requestId ,
211
- AuthChallengeResponse = new V106 . Fetch . AuthChallengeResponse ( )
211
+ AuthChallengeResponse = new V109 . Fetch . AuthChallengeResponse ( )
212
212
{
213
- Response = V106 . Fetch . AuthChallengeResponseResponseValues . ProvideCredentials ,
213
+ Response = V109 . Fetch . AuthChallengeResponseResponseValues . ProvideCredentials ,
214
214
Username = userName ,
215
215
Password = password
216
216
}
@@ -227,9 +227,9 @@ public override async Task CancelAuth(string requestId)
227
227
await fetch . ContinueWithAuth ( new ContinueWithAuthCommandSettings ( )
228
228
{
229
229
RequestId = requestId ,
230
- AuthChallengeResponse = new OpenQA . Selenium . DevTools . V106 . Fetch . AuthChallengeResponse ( )
230
+ AuthChallengeResponse = new OpenQA . Selenium . DevTools . V109 . Fetch . AuthChallengeResponse ( )
231
231
{
232
- Response = V106 . Fetch . AuthChallengeResponseResponseValues . CancelAuth
232
+ Response = V109 . Fetch . AuthChallengeResponseResponseValues . CancelAuth
233
233
}
234
234
} ) ;
235
235
}
0 commit comments