Example #1
0
        public void TestMethod1()
        {
            HtmlReporter.CreateExtentReport();
            HtmlReporter.CreateTest("test");
            WebDriverMethod driver = new WebDriverMethod();

            driver.Init("firefox");

            driver.OpenUrl("http://demo.automationtesting.in/Index.html");
            //driver.CompareScreenshot("entry page");
            driver.CompareScreenshot("Signin btn", By.Id("btn1"));
            driver.DestroyDriver();
        }
Example #2
0
 public static void AfterTestRun()
 {
     HtmlReporter.Flush();
     driver.DestroyDriver();
 }