Exemplo n.º 1
0
    public static void BeforeTestRun()
    {
        driver = new WebDriverMethod();
        driver.Init();

        Utils.CreateReportFolder();
        HtmlReporter.CreateExtentReport();
        //HtmlReporter.AddSystemInfo(driver.GetDriver());
    }
Exemplo n.º 2
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();
        }