Пример #1
0
        public void SuccessGoToBlogPage()
        {
            mn_POM = mn_POM.ClickOnBlogLink();
            IWebElement coursesText = chrome.FindElement(By.XPath("/html/body/div[2]/main/div/div/div[1]/div/h1"));

            Assert.AreEqual("Блог", coursesText.Text);
        }
Пример #2
0
        public void SuccessGoToNewsPage()
        {
            mn_POM = mn_POM.ClickOnNewsLink();
            IWebElement newsText = chrome.FindElement(By.XPath("/html/body/div[2]/main/div/div/div[1]/div/h1"));

            Assert.AreEqual("Новости", newsText.Text);
        }
Пример #3
0
        public void SuccessGoToCoursesPage()
        {
            mn_POM = mn_POM.ClickOnCoursesLink();
            IWebElement coursesText = chrome.FindElement(By.XPath("/ html / body / div[2] / main / section[1] / div / h1"));

            Assert.AreEqual("Наши курсы", coursesText.Text);
        }
Пример #4
0
        public void SuccessAskQuestion()
        {
            mn_POM = mn_POM.AskQuestion("User", "+380999999999");
            string actualResult_URL = chrome.Url;

            Assert.AreEqual("https://lp.deveducation.com/course-v1/thank-you-page.html", actualResult_URL);
        }
Пример #5
0
 public void Settings()
 {
     chrome.Navigate().GoToUrl("https://deveducation.com/");
     chrome.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(3);
     hp_POM     = new POM_HomePage(chrome);
     cp_POM     = new POM_ContactsPage(chrome);
     footer_POM = new POM_Footer(chrome);
     mn_POM     = new Menu_POM(chrome);
     si_POM     = new SignOnCourse_POM(chrome);
     nw_POM     = new News_POM(chrome);
     chrome.Manage().Window.Maximize();
 }