Class AddInterceptCommandParameters
- Namespace
- WebDriverBiDi.Network
- Assembly
- WebDriverBiDi.dll
Provides parameters for the network.addIntercept command.
public class AddInterceptCommandParameters : CommandParameters<AddInterceptCommandResult>
- Inheritance
-
AddInterceptCommandParameters
- Inherited Members
Constructors
AddInterceptCommandParameters(InterceptPhase, params InterceptPhase[])
Initializes a new instance of the AddInterceptCommandParameters class.
public AddInterceptCommandParameters(InterceptPhase phase, params InterceptPhase[] additionalPhases)
Parameters
phaseInterceptPhaseThe InterceptPhase for which to add the intercept.
additionalPhasesInterceptPhase[]The additional InterceptPhases for which to add the intercept.
Properties
Contexts
Gets the list of top-level browsing context IDs for which traffic will be intercepted. If present, it must contain at least one browsing context ID, and all IDs must represent top-level browsing contexts, or an error will be thrown by the remote end.
[JsonIgnore]
public List<string> Contexts { get; }
Property Value
Remarks
The protocol requires this property, when present, to contain at least one entry. An empty list therefore means "not specified": the property is omitted from the JSON payload entirely, and an empty array is never sent. Add entries to the list to scope the command.
MethodName
Gets the method name of the command.
[JsonIgnore]
public override string MethodName { get; }
Property Value
Phases
Gets the set of phases for which network traffic will be intercepted.
[JsonPropertyName("phases")]
public HashSet<InterceptPhase> Phases { get; }
Property Value
UrlPatterns
Gets the list of URL patterns for which to intercept network traffic.
[JsonIgnore]
public List<UrlPattern> UrlPatterns { get; }
Property Value
Remarks
This property is optional in the protocol, and omitting it has the same meaning as sending an empty array. An empty list therefore means "not specified": the property is omitted from the JSON payload entirely. Add entries to the list to populate it.