using OpenQA.Selenium;

namespace AOW4.SeleniumTests.Pages;

public class WeatherPage
{
    private readonly IWebDriver _driver;
    public WeatherPage(IWebDriver driver) => _driver = driver;

    public bool IsAt()
    {
        var url = _driver.Url ?? string.Empty;
        return url.Contains("weather", System.StringComparison.OrdinalIgnoreCase) || _driver.PageSource.Contains("Weather");
    }
}
