public void Test1()
 {
     try
     {
         test = ExtentReporter.CreateTest("First Test");
         Session.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);
         Session.Manage().Window.Maximize();
         test.Info("Executing first test");
         Session.FindElementByName("Two").Click();
         Session.FindElementByName("Plus").Click();
         Session.FindElementByName("Two").Click();
         Session.FindElementByName("Equals").Click();
         var results = Session.FindElementByAccessibilityId("CalculatorResults");
         Assert.AreEqual(results.Text, "5");
         ExtentReporter.PassTest(test);
     }
     catch (Exception ex)
     {
         ExtentReporter.LogFailure(test, "Result are not as expected");
     }
 }
 public void TestCleanup()
 {
     ExtentReporter.flushreport();
     Session.Quit();
 }