public void VerifySaveNewAdd() { SavenewWaitListBtn.Click(); IList <string> result = Wait.UntilToastMessageShow(); if (result.Any(e => e == "Saved successfully" || e == "Saved and added successfully")) { Logger.Log(LogingType.TestCasePass, "Wait list Save Successfully"); } else { this.CancelWaitList(); Logger.Log(LogingType.TextCaseFail, result.ToString()); throw new Exception(result.ToString()); } }
public void EditWaitList(WaitListModel Data) { this.filterWaitList(Data); IWebElement aElement = this.GetRowFromFilter(); aElement.Click(); // Wait.UntilDisply(form_ProductgroupDD); Wait.AM_Loaging_ShowAndHide(); if (!string.IsNullOrEmpty(Data.defaultProduct)) { Element.ScrolTo(form_DefaultProduct); form_DefaultProduct.Clear(); form_DefaultProduct.SendKeys(Data.defaultProduct); } SavenewWaitListBtn.Click(); this.VerifyUpdate(); }