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
Expect(ILocator)
public static ILocatorAssertions Expect(ILocator locator)
Parameters
locator
ILocator
Returns
Expect(IPage)
public static IPageAssertions Expect(IPage page)
Parameters
page
IPage
Returns
SetDefaultExpectTimeout(float)
Sets the default timeout for all future Expect
calls.
public static void SetDefaultExpectTimeout(float timeout)
Parameters
timeout
floatThe timeout in milliseconds.
Remarks
The default timeout is 5 seconds.