diff --git a/src/Playwright/Core/AssertionsBase.cs b/src/Playwright/Core/AssertionsBase.cs index 26c35a977..fdb6bea58 100644 --- a/src/Playwright/Core/AssertionsBase.cs +++ b/src/Playwright/Core/AssertionsBase.cs @@ -38,7 +38,7 @@ namespace Microsoft.Playwright.Core; -internal class AssertionsBase +internal abstract class AssertionsBase { private static float _defaultTimeout = 5_000; @@ -49,10 +49,7 @@ public AssertionsBase(bool isNot) protected bool IsNot { get; } - protected virtual Task CallExpectAsync(string expression, FrameExpectOptions expectOptions, string title) - { - throw new NotImplementedException("CallExpectAsync must be implemented in a derived class."); - } + protected abstract Task CallExpectAsync(string expression, FrameExpectOptions expectOptions, string title); protected async Task ExpectImplAsync(string expression, ExpectedTextValue textValue, object expected, string message, string title, FrameExpectOptions options) {