Table of Contents

Class BrowserContextRunAndWaitForConsoleMessageOptions

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

Constructors

BrowserContextRunAndWaitForConsoleMessageOptions()

public BrowserContextRunAndWaitForConsoleMessageOptions()

BrowserContextRunAndWaitForConsoleMessageOptions(BrowserContextRunAndWaitForConsoleMessageOptions)

public BrowserContextRunAndWaitForConsoleMessageOptions(BrowserContextRunAndWaitForConsoleMessageOptions clone)

Parameters

clone BrowserContextRunAndWaitForConsoleMessageOptions

Properties

Predicate

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

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

Property Value

Func<IConsoleMessage, 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?