Table of Contents

Class PageWaitForWebSocketOptions

Namespace
Microsoft.Playwright
Assembly
Microsoft.Playwright.dll
public class PageWaitForWebSocketOptions
Inheritance
PageWaitForWebSocketOptions
Inherited Members

Constructors

PageWaitForWebSocketOptions()

public PageWaitForWebSocketOptions()

PageWaitForWebSocketOptions(PageWaitForWebSocketOptions)

public PageWaitForWebSocketOptions(PageWaitForWebSocketOptions clone)

Parameters

clone PageWaitForWebSocketOptions

Properties

Predicate

Receives the IWebSocket object and resolves to truthy value when the waiting should resolve.

[JsonPropertyName("predicate")]
public Func<IWebSocket, bool>? Predicate { get; set; }

Property Value

Func<IWebSocket, bool>

Timeout

Maximum time to wait for in milliseconds. Defaults to 30000 (30 seconds). Pass 0 to disable timeout. The default value can be changed by using the SetDefaultTimeout(float).

[JsonPropertyName("timeout")]
public float? Timeout { get; set; }

Property Value

float?