public void GivenIOpenBrowserAndGoToCafeTownsendHomePage()
        {
            var test = new BaseTest(ConfigurationManager.AppSettings["cafeTownsendURL"]);

            var loginLogout        = new LoginLogoutPage(test._driver);
            var basePage           = new BaseTest(test._driver);
            var employeeManagement = new EmployeeManagementPage(test._driver);
            var extraActions       = new ExtraActions(test._driver);

            ScenarioContext.Current.Clear();
            ScenarioContext.Current.Set(loginLogout);
            ScenarioContext.Current.Set(basePage);
            ScenarioContext.Current.Set(employeeManagement);
            ScenarioContext.Current.Set(extraActions);
        }
 public void ClearEmployeeFields(bool hardly)
 {
     if (hardly == false)
     {
         firstNameInp.Clear();
         lastNameInp.Clear();
         startDateInp.Clear();
         emailInp.Clear();
     }
     else
     {
         ExtraActions actions = new ExtraActions(_driver);
         actions.ClearFieldHardly(firstNameInp)
         .ClearFieldHardly(lastNameInp)
         .ClearFieldHardly(startDateInp)
         .ClearFieldHardly(emailInp);
     }
 }
Exemple #3
0
 public ExtraButton(ExtraActions actionType, string text, IImage icon)
 {
     Action = actionType;
     Text   = text;
     Icon   = icon;
 }
Exemple #4
0
 public ExtraButton(ExtraActions actionType, string text, IImage icon)
 {
     Action = actionType;
     Text = text;
     Icon = icon;
 }