public static void BeforeTestRun() { driver = new WebDriverMethod(); driver.Init(); Utils.CreateReportFolder(); HtmlReporter.CreateExtentReport(); //HtmlReporter.AddSystemInfo(driver.GetDriver()); }
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(); }