Esempio n. 1
0
 public virtual void Setuppage()
 {
     pageTest = new LogInPage();
     pageTest.PageLoad();
     Helper.GetLoginDetails(1, 2);
     pageTest.LogIn(Helper.Username, Helper.Password);
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public override void Setuppage()
 {
     pagetest = new LogInPage();
     pagetest.PageLoad();
 }