예제 #1
0
        public void CheckOpenQuestion1FAQ()
        {
            pageModel  = new MainPageModel(driver);
            driver.Url = Urls.mainPage;

            string actResult = pageModel.FindFAQButton()
                               .ClickOnFAQButton()
                               .FindQuestion1()
                               .ClickOnQuestion1()
                               .FindAnswer1()
                               .GetTextFromAnswer1();
            string expRes = new FAQPageModel(driver).answer1Text;

            Assert.AreEqual(expRes, actResult);
        }
예제 #2
0
        public MainPageTest()
        {
            pageModel      = new MainPageModel();
            coursesModel   = new CoursesPageModel();
            graduatesModel = new GraduatesPageModel();
            newsModel      = new NewsPageModel();
            blogModel      = new BlogPageModel();
            aboutUsModel   = new AboutUsPageModel();
            contactsModel  = new ContactsPageModel();
            languageModel  = new LanguagePageModel();
            faqModel       = new FAQPageModel();
            privacyPolici  = new PrivacyPolicyPageModel();

            contactKyivPage      = new ContactKyivPage();
            contactDneprPage     = new ContactDneprPage();
            contactPeterburgPage = new ContactPeterburgPage();
            contactKharkovPage   = new ContactKharkovPage();

            coursesDneprPage     = new CoursesDneprPage();
            coursesKyivPage      = new CoursesKyivPage();
            coursesBakuPage      = new CoursesBakuPage();
            coursesPeterburgPage = new CoursesPeterburgPage();
            coursesKharkovPage   = new CoursesKharkovPage();

            uaLanguageSelect = new UaLanguageSelect();
            azLanguageSelect = new AzLanguageSelect();

            sitePeterburgCourses = new SitePeterburgCourses();
            siteKyivCourses      = new SiteKyivCourses();
            siteDneprCourses     = new SiteDneprCourses();
            siteKharkovCourses   = new SiteKharkovCourses();
            siteBakuCourses      = new SiteBakuCourses();

            articleNewsPage = new ArticleNewsPage();


            bioGonzovPage = new BiographyGonzovPage();
        }