Ejemplo n.º 1
0
        public void TestMethod2()
        {
            HomeObject homeObj     = new HomeObject(driver);
            HomeAction homePageAct = new HomeAction(driver);

            try
            {
                Console.WriteLine("Test Started");
                WaitForMoment(4);
                homePageAct.ClickOnReportsLink();
                WaitForMoment(4);
                homePageAct.ClickOnHomePageLink();
                WaitForMoment(4);
                homePageAct.ClickOnDashboardLink();
                WaitForMoment(4);
                homePageAct.ClickOnHomePageLink();
                WaitForMoment(4);
                homePageAct.ClickOnAdministratonLink();
                WaitForMoment(4);
                homePageAct.ClickOnHomePageLink();
                WaitForMoment(2);

                Console.WriteLine("Test Finished");
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
Ejemplo n.º 2
0
        public void TC04_VerifyingNavigationToAdministrationPage()
        {
            HomeObject homeObj     = new HomeObject(driver);
            HomeAction homePageAct = new HomeAction(driver);

            try
            {
                Console.WriteLine("Test Started");

                homePageAct.VerifyingPageTitle("SIMATIC Information Server");
                homePageAct.VerifyHomePageLinks();
                homePageAct.ClickOnAdministratonLink();
                WaitForMoment(4);
                homePageAct.VerifyingConfigurationLink();

                Console.WriteLine("Test Finished");
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }