コード例 #1
0
        public void SuccessSignToNewsLetter()
        {
            nw_POM = hp_POM.ClickOnSignButton("*****@*****.**");
            chrome.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
            IWebElement actualReesult = chrome.FindElement(By.CssSelector("body > div.subscribe > div > div.subscribe__terms > div > a:nth-child(3)"));

            Assert.AreEqual("Антиспам-политика", actualReesult);
            chrome.Quit();
        }
コード例 #2
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();
 }