using Microsoft.Playwright; namespace Tests.PageObjects; public abstract class BasePage { protected readonly string BaseUrl = "http://localhost:5256"; protected readonly IPage Page; protected BasePage(IPage page) { Page = page; } public async Task NavigateToAsync(string path) { await Page.GotoAsync($"{BaseUrl}{path}"); } public ILocator GetHeading() { return Page.Locator("h1"); } }