Table of Contents

Class WindowOpenEventArgs

Namespace
Selenium.WebDriver.BiDi.Cdp.Page
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.

public sealed record WindowOpenEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<WindowOpenEventArgs>
Inheritance
EventArgs
WindowOpenEventArgs
Implements
IEquatable<EventArgs>
Inherited Members
EventArgs.ToString()
EventArgs.GetHashCode()
EventArgs.Equals(EventArgs)
EventArgs.<Clone>$()
EventArgs.BiDi
EventArgs.AdditionalData
EventArgs.AdditionalMessageData

Constructors

WindowOpenEventArgs(string, string, ImmutableArray<string>, bool)

Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.

public WindowOpenEventArgs(string Url, string WindowName, ImmutableArray<string> WindowFeatures, bool UserGesture)

Parameters

Url string

The URL for the new window.

WindowName string

Window name.

WindowFeatures ImmutableArray<string>

An array of enabled window features.

UserGesture bool

Whether or not it was triggered by user gesture.

Properties

Url

The URL for the new window.

public string Url { get; init; }

Property Value

string

UserGesture

Whether or not it was triggered by user gesture.

public bool UserGesture { get; init; }

Property Value

bool

WindowFeatures

An array of enabled window features.

public ImmutableArray<string> WindowFeatures { get; init; }

Property Value

ImmutableArray<string>

WindowName

Window name.

public string WindowName { get; init; }

Property Value

string