Ejemplo n.º 1
0
        public void UserOpensPagesViaHeaderLinks(string pageTitle)
        {
            string actualPageTitle = string.Empty;

            switch (pageTitle)
            {
            case "Наши курсы":
                head_ru_POM.ClickOnHeaderLink(head_ru_POM.CourseLink);
                actualPageTitle = cr_POM.GetCoursePageTitle(cr_POM.PageTitle);
                break;

            case "Наши выпускники":
                head_ru_POM.ClickOnHeaderLink(head_ru_POM.GraduatesLink);
                actualPageTitle = gr_POM.GetGraduatePageTitle(gr_POM.PageTitle);
                break;

            case "Новости":
                head_ru_POM.ClickOnHeaderLink(head_ru_POM.NewsLink);
                actualPageTitle = news_POM.GetNewsPageTitle(news_POM.PageTitle);
                break;

            case "Блог":
                head_ru_POM.ClickOnHeaderLink(head_ru_POM.BlogLink);
                actualPageTitle = blog_POM.GetBlogPageTitle(blog_POM.PageTitle);
                break;

            case "О нас":
                head_ru_POM.ClickOnHeaderLink(head_ru_POM.AboutUsLink);
                actualPageTitle = about_POM.GetAboutPageTitle(about_POM.PageTitle);
                break;

            case "Наши контакты":
                head_ru_POM.ClickOnHeaderLink(head_ru_POM.ContactsLink);
                actualPageTitle = contact_POM.GetContactPageTitle(contact_POM.PageTitle);
                break;
            }
            Assert.AreEqual(pageTitle, actualPageTitle);
        }