private static void PerformPageActions <TDriver>(TDriver driver, IWebPage <TDriver> page) where TDriver : IWebDriver { driver.Navigate().GoToUrl(page.Url); page.PreCheck(driver); page.PerformActions(driver); page.PostCheck(driver); }