A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/seleniumhq/selenium/commit/8ee95718a46498cb5e37b99407e67c300b607d84 below:

[dotnet] add cdp v105 remove v102 · SeleniumHQ/selenium@8ee9571 · GitHub

1 -

// <copyright file="V102Network.cs" company="WebDriver Committers">

1 +

// <copyright file="V105Network.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.V102.Fetch;

24 -

using OpenQA.Selenium.DevTools.V102.Network;

23 +

using OpenQA.Selenium.DevTools.V105.Fetch;

24 +

using OpenQA.Selenium.DevTools.V105.Network;

25 25 26 -

namespace OpenQA.Selenium.DevTools.V102

26 +

namespace OpenQA.Selenium.DevTools.V105

27 27

{

28 28

/// <summary>

29 -

/// Class providing functionality for manipulating network calls using version 102 of the DevTools Protocol

29 +

/// Class providing functionality for manipulating network calls using version 105 of the DevTools Protocol

30 30

/// </summary>

31 -

public class V102Network : DevTools.Network

31 +

public class V105Network : 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="V102Network"/> class.

37 +

/// Initializes a new instance of the <see cref="V105Network"/> 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 V102Network(NetworkAdapter network, FetchAdapter fetch)

41 +

public V105Network(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.V102.Fetch.EnableCommandSettings()

83 +

await fetch.Enable(new OpenQA.Selenium.DevTools.V105.Fetch.EnableCommandSettings()

84 84

{

85 -

Patterns = new OpenQA.Selenium.DevTools.V102.Fetch.RequestPattern[]

85 +

Patterns = new OpenQA.Selenium.DevTools.V105.Fetch.RequestPattern[]

86 86

{

87 -

new OpenQA.Selenium.DevTools.V102.Fetch.RequestPattern() { UrlPattern = "*", RequestStage = RequestStage.Request },

88 -

new OpenQA.Selenium.DevTools.V102.Fetch.RequestPattern() { UrlPattern = "*", RequestStage = RequestStage.Response }

87 +

new OpenQA.Selenium.DevTools.V105.Fetch.RequestPattern() { UrlPattern = "*", RequestStage = RequestStage.Request },

88 +

new OpenQA.Selenium.DevTools.V105.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 V102.Fetch.AuthChallengeResponse()

211 +

AuthChallengeResponse = new V105.Fetch.AuthChallengeResponse()

212 212

{

213 -

Response = V102.Fetch.AuthChallengeResponseResponseValues.ProvideCredentials,

213 +

Response = V105.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.V102.Fetch.AuthChallengeResponse()

230 +

AuthChallengeResponse = new OpenQA.Selenium.DevTools.V105.Fetch.AuthChallengeResponse()

231 231

{

232 -

Response = V102.Fetch.AuthChallengeResponseResponseValues.CancelAuth

232 +

Response = V105.Fetch.AuthChallengeResponseResponseValues.CancelAuth

233 233

}

234 234

});

235 235

}


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4