selenium Selenium simple example C# and Nunit Simple page load test and make sure the title of the page is correct


Example

public class HomepageTests
{
    private IWebDriver _driver;
    
    [SetUp]
    public void LoadDriver()
    {
       _driver = new ChromeDriver();
       
    }

    [Test]
    public void Valid_Home_Page_Title()
    {
        _driver.Navigate().GoToUrl("Your homeoage url / local or remote");
        StringAssert.Contains("Expected title of your page", _driver.Title);

    }

    [TearDown]
    public void UnloadDriver()
    {
        _driver.Quit();
    }
}