public virtual void Setuppage() { pageTest = new LogInPage(); pageTest.PageLoad(); Helper.GetLoginDetails(1, 2); pageTest.LogIn(Helper.Username, Helper.Password); }
public void NoCredsEditPage() { pageTest = new LogInPage(); pageTest.PageLoad(); Helper.GetLoginDetails(1, 2); pageTest.LogIn(Helper.Username, Helper.Password); Helper.WaitForElement(EmployeePage.EmployeeElement); Setup.cDriver.FindElement(EmployeePage.EmployeeElement).Click(); Setup.cDriver.FindElement(EmployeePage.EditButton).Click(); Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["SleepTimeout"])); string employeeURL = Setup.cDriver.Url; IWebElement logOutButton = Setup.cDriver.FindElement(By.CssSelector("body > div > header > div > p.main-button")); logOutButton.Click(); Setup.SetWebpage(employeeURL); Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["SleepTimeout"])); string currentURL = Setup.cDriver.Url; Helper.GetURL(3); Assert.AreEqual(currentURL, Helper.URL); }
public override void Setuppage() { pagetest = new LogInPage(); pagetest.PageLoad(); }