Table of Contents

Class Assertions

Namespace
Microsoft.Playwright
Assembly
Microsoft.Playwright.dll
public static class Assertions
Inheritance
Assertions
Inherited Members

Methods

Expect(IAPIResponse)

public static IAPIResponseAssertions Expect(IAPIResponse response)

Parameters

response IAPIResponse

Returns

IAPIResponseAssertions

Expect(ILocator)

public static ILocatorAssertions Expect(ILocator locator)

Parameters

locator ILocator

Returns

ILocatorAssertions

Expect(IPage)

public static IPageAssertions Expect(IPage page)

Parameters

page IPage

Returns

IPageAssertions

SetDefaultExpectTimeout(float)

Sets the default timeout for all future Expect calls.

public static void SetDefaultExpectTimeout(float timeout)

Parameters

timeout float

The timeout in milliseconds.

Remarks

The default timeout is 5 seconds.