Interface IAPIResponseAssertions
- Namespace
- Microsoft.Playwright
- Assembly
- Microsoft.Playwright.dll
The IAPIResponseAssertions class provides assertion methods that can be used to make assertions about the IAPIResponse in the tests.
public interface IAPIResponseAssertions
Properties
Not
Makes the assertion check for the opposite condition. For example, this code tests that the response status is not successful:
IAPIResponseAssertions Not { get; }
Property Value
Methods
ToBeOKAsync()
Ensures the response status code is within 200..299
range.
**Usage**
Task ToBeOKAsync()