Exemplo n.º 1
0
        public void CTestMethod1()
        {
            Driver.Navigate().GoToUrl(@"https://ultimateqa.com/complicated-page/");
            ComplicatedPage complicatedPage = new ComplicatedPage(Driver);

            complicatedPage.ClickCoursesLink();
            CoursesPage coursesPage = new CoursesPage(Driver);

            Driver.Navigate().GoToUrl(@"https://ultimateqa.com/complicated-page/");
            complicatedPage = new ComplicatedPage(Driver);
            complicatedPage.ClickCoursesLink();
            coursesPage = new CoursesPage(Driver);
        }
Exemplo n.º 2
0
        public void TestMethod4()
        {
            Driver.Navigate().GoToUrl(@"https://ultimateqa.com/");
            StartPage startPage = new StartPage(Driver);

            startPage.OpenLink("Automation Exercises");
            AutomationExercises automationExercises = new AutomationExercises(Driver);

            Driver.Navigate().GoToUrl(@"https://ultimateqa.com/complicated-page/");
            ComplicatedPage complicatedPage = new ComplicatedPage(Driver);

            complicatedPage.ClickCoursesLink();
            CoursesPage coursesPage = new CoursesPage(Driver);
        }