Class BrowsingContext
- Namespace
- OpenQA.Selenium.BiDi.BrowsingContext
- Assembly
- Selenium.WebDriver.dll
[JsonConverter(typeof(BrowsingContext.Converter))]
public sealed record BrowsingContext : IIdentifiable, IEquatable<BrowsingContext>
- Inheritance
-
BrowsingContext
- Implements
- Inherited Members
Constructors
BrowsingContext(IBiDi, string)
public BrowsingContext(IBiDi bidi, string id)
Parameters
Properties
BiDi
[JsonIgnore]
public IBiDi BiDi { get; }
Property Value
DomContentLoaded
[JsonIgnore]
public IEventSource<DomContentLoadedEventArgs> DomContentLoaded { get; }
Property Value
DownloadEnd
[JsonIgnore]
public IEventSource<DownloadEndEventArgs> DownloadEnd { get; }
Property Value
DownloadWillBegin
[JsonIgnore]
public IEventSource<DownloadWillBeginEventArgs> DownloadWillBegin { get; }
Property Value
FragmentNavigated
[JsonIgnore]
public IEventSource<FragmentNavigatedEventArgs> FragmentNavigated { get; }
Property Value
HistoryUpdated
[JsonIgnore]
public IEventSource<HistoryUpdatedEventArgs> HistoryUpdated { get; }
Property Value
Id
public string Id { get; }
Property Value
Input
[JsonIgnore]
public IBrowsingContextInputModule Input { get; }
Property Value
Load
[JsonIgnore]
public IEventSource<LoadEventArgs> Load { get; }
Property Value
Log
[JsonIgnore]
public IBrowsingContextLogModule Log { get; }
Property Value
NavigationAborted
[JsonIgnore]
public IEventSource<NavigationAbortedEventArgs> NavigationAborted { get; }
Property Value
NavigationCommitted
[JsonIgnore]
public IEventSource<NavigationCommittedEventArgs> NavigationCommitted { get; }
Property Value
NavigationFailed
[JsonIgnore]
public IEventSource<NavigationFailedEventArgs> NavigationFailed { get; }
Property Value
NavigationStarted
[JsonIgnore]
public IEventSource<NavigationStartedEventArgs> NavigationStarted { get; }
Property Value
Network
[JsonIgnore]
public IBrowsingContextNetworkModule Network { get; }
Property Value
Script
[JsonIgnore]
public IBrowsingContextScriptModule Script { get; }
Property Value
Storage
[JsonIgnore]
public IBrowsingContextStorageModule Storage { get; }
Property Value
Methods
ActivateAsync(ActivateOptions?, CancellationToken)
public Task<ActivateResult> ActivateAsync(ActivateOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsActivateOptionscancellationTokenCancellationToken
Returns
CaptureScreenshotAsync(CaptureScreenshotOptions?, CancellationToken)
public Task<CaptureScreenshotResult> CaptureScreenshotAsync(CaptureScreenshotOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsCaptureScreenshotOptionscancellationTokenCancellationToken
Returns
CloseAsync(CloseOptions?, CancellationToken)
public Task<CloseResult> CloseAsync(CloseOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsCloseOptionscancellationTokenCancellationToken
Returns
Equals(BrowsingContext?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BrowsingContext? other)
Parameters
otherBrowsingContextAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetTreeAsync(ContextGetTreeOptions?, CancellationToken)
public Task<GetTreeResult> GetTreeAsync(ContextGetTreeOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsContextGetTreeOptionscancellationTokenCancellationToken
Returns
HandleUserPromptAsync(HandleUserPromptOptions?, CancellationToken)
public Task<HandleUserPromptResult> HandleUserPromptAsync(HandleUserPromptOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsHandleUserPromptOptionscancellationTokenCancellationToken
Returns
LocateNodesAsync(Locator, LocateNodesOptions?, CancellationToken)
public Task<LocateNodesResult> LocateNodesAsync(Locator locator, LocateNodesOptions? options = null, CancellationToken cancellationToken = default)
Parameters
locatorLocatoroptionsLocateNodesOptionscancellationTokenCancellationToken
Returns
NavigateAsync(string, NavigateOptions?, CancellationToken)
public Task<NavigateResult> NavigateAsync(string url, NavigateOptions? options = null, CancellationToken cancellationToken = default)
Parameters
urlstringoptionsNavigateOptionscancellationTokenCancellationToken
Returns
PrintAsync(PrintOptions?, CancellationToken)
public Task<PrintResult> PrintAsync(PrintOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsPrintOptionscancellationTokenCancellationToken
Returns
ReloadAsync(ReloadOptions?, CancellationToken)
public Task<ReloadResult> ReloadAsync(ReloadOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsReloadOptionscancellationTokenCancellationToken
Returns
SetViewportAsync(ContextSetViewportOptions?, CancellationToken)
public Task<SetViewportResult> SetViewportAsync(ContextSetViewportOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsContextSetViewportOptionscancellationTokenCancellationToken
Returns
TraverseHistoryAsync(int, TraverseHistoryOptions?, CancellationToken)
public Task<TraverseHistoryResult> TraverseHistoryAsync(int delta, TraverseHistoryOptions? options = null, CancellationToken cancellationToken = default)
Parameters
deltaintoptionsTraverseHistoryOptionscancellationTokenCancellationToken