示例#1
0
 public void Create_Recipe()
 {
     loginPage.Login("*****@*****.**", "Serioux44");
     dashboardPage = new DashboardPage(Driver);
     dashboardPage.ToCreateRecipe();
     createRecipePage = new CreateRecipePage(Driver);
     createRecipePage.CreateRecipe("ToastTest", "paine,oua,sunca", "la tigaie");
     Assert.True(createRecipePage.LabelRecipeAdded.Displayed);
 }
        private void AddBtn_Click(object sender, EventArgs e)
        {
            DisableControl(Control.All);
            if (AboutBtn.Enabled && CategoryBtn.Enabled) // AllRecipes tab
            {
                DataClass.lastUsedControl = MainPanel.Controls[0];
                MainPanel.Controls.Clear();

                CreateRecipePage createPage = new CreateRecipePage();
                createPage.Dock         = DockStyle.Fill;
                createPage.CancelEvent += CancelEvent;
                MainPanel.Controls.Add(createPage);
            }

/*            else if (AboutBtn.Enabled && AllRecepiesBtn.Enabled) // AllRecipes tab
 *          {
 *
 *          }*/
        }