public void CheckTitle(string Local, string expectedTitle) { driver.Url = Local; Hel_per.Timeout(); string actualTitle = driver.FindElement(By.CssSelector("head > title")).GetAttribute("text"); Assert.AreEqual(expectedTitle, actualTitle); }
public void CheckSecondLevelTabs(string Local, string MenuSelector, string expectedH1) { driver.Url = Local; driver.FindElement(By.CssSelector(MenuSelector)).Click(); Hel_per.Timeout(); string actualH1 = driver.FindElement(By.TagName("h1")).Text; Assert.AreEqual(expectedH1, actualH1); }
public void CheckTabs(string Local, string MenuSelector, string SubmenuSelector, string expectedH1) { driver.Url = Local; Hel_per.OpenParentTab(MenuSelector); driver.FindElement(By.LinkText(SubmenuSelector)).Click(); Hel_per.Timeout(); string actualH1 = driver.FindElement(By.TagName("h1")).Text; Assert.AreEqual(expectedH1, actualH1); }
public void Registration(string Local) { driver.Navigate().GoToUrl(Local); Hel_per.ActionButtonLogin(); Hel_per.Timeout(); Hel_per.FormRegistration(a); I_frame.GoToFrame(); I_frame.MyAccount(); I_frame.AssertRegistration(); driver.SwitchTo().DefaultContent(); Hel_per.Logout(); }
public void Authorization(string Local) { driver.Url = Local; Hel_per.ActionButtonLogin(); Hel_per.Timeout(); Hel_per.FormAuthorization(); I_frame.GoToFrame(); I_frame.MyAccount(); I_frame.AssertAuthorization(); driver.SwitchTo().DefaultContent(); Hel_per.Logout(); }
public void CheckThirdLevelTabs(string Local, string MenuSelector, string SubmenuSelector, string ThirdLevelTabSelector, string expectedH1) { driver.Url = Local; Hel_per.OpenParentTab(MenuSelector); Actions action = new Actions(driver); IWebElement Tab = driver.FindElement(By.LinkText(SubmenuSelector)); action.MoveToElement(Tab).Build().Perform(); driver.FindElement(By.LinkText(ThirdLevelTabSelector)).Click(); Hel_per.Timeout(); string actualH1 = driver.FindElement(By.TagName("h1")).Text; Assert.AreEqual(expectedH1, actualH1); }