public void CheckContactInformationAddress(string city, string expectedResult) { chrome.Manage().Window.Size = new Size(900, 700); chrome.Navigate().GoToUrl("https://deveducation.com/contacts/"); chrome.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); By close = By.CssSelector("body > div.wrapper > main > div.popups.subscribe - pop.closing - pop.show > div > button"); cp_POM = cp_POM.ClickOnTheCityForGetInfo(city); IWebElement actualResult = chrome.FindElement(By.CssSelector("body > div.wrapper > main > section.contacts-section > div > div.contacts-list > div.contacts-list__item.entered > div.contacts-list__content > div.contacts-list__info > div:nth-child(1)")); Assert.AreEqual(expectedResult, actualResult.Text); }
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(); }