MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / StopMonitoring

Method StopMonitoring

dotnet/src/webdriver/NetworkManager.cs:87–97  ·  view source on GitHub ↗

Asynchronously stops monitoring for network traffic. A task that represents the asynchronous operation.

()

Source from the content-addressed store, hash-verified

85 /// </summary>
86 /// <returns>A task that represents the asynchronous operation.</returns>
87 [RequiresUnreferencedCode("Network monitoring is currently implemented with CDP. When it is implemented with BiDi, AOT will be supported")]
88 [RequiresDynamicCode("Network monitoring is currently implemented with CDP. When it is implemented with BiDi, AOT will be supported.")]
89 public async Task StopMonitoring()
90 {
91 this.session.Value.Domains.Network.ResponsePaused -= OnResponsePaused;
92 this.session.Value.Domains.Network.AuthRequired -= OnAuthRequired;
93 this.session.Value.Domains.Network.RequestPaused -= OnRequestPaused;
94 await this.session.Value.Domains.Network.EnableNetworkCaching().ConfigureAwait(false);
95 await this.session.Value.Domains.Network.DisableNetwork().ConfigureAwait(false);
96 await this.session.Value.Domains.Network.DisableFetch().ConfigureAwait(false);
97 }
98
99 /// <summary>
100 /// Adds a <see cref="NetworkRequestHandler"/> to examine incoming network requests,

Callers

nothing calls this directly

Calls 3

EnableNetworkCachingMethod · 0.45
DisableNetworkMethod · 0.45
DisableFetchMethod · 0.45

Tested by

no test coverage detected