Beispiel #1
0
 public SuspensionRecordPage ClickDeleteRow(SuspensionExpulsion row)
 {
     if (row != null)
     {
         row.DeleteRow();
         _saveButton.Click();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
     return(new SuspensionRecordPage());
 }
Beispiel #2
0
        public SuspensionRecordPage ConfirmDelete(SuspensionExpulsion row, bool isDelete = false)
        {
            IWebElement _cancelButton = SeleniumHelper.Get(SimsBy.AutomationId("No_button"));
            IWebElement _yesButton    = SeleniumHelper.Get(SimsBy.AutomationId("Yes_button"));

            if (isDelete)
            {
                _yesButton.Click();
            }
            else
            {
                _cancelButton.Click();
            }
            return(new SuspensionRecordPage());
        }