示例#1
0
        public void schoolDelete()
        {
            SeleniumHelper.Get(SimsBy.AutomationId("delete_button")).ClickByJS();
            var confirmDeleteDialog = new DeleteConfirmationDialog();

            confirmDeleteDialog.ConfirmDelete();
        }
示例#2
0
 public void Delete()
 {
     if (_deleteButton.IsExist())
     {
         Retry.Do(_deleteButton.ClickByJS);
         Wait.WaitForAjaxReady(By.CssSelector(".locking-mask"));
         var deleteDialog = new DeleteConfirmationDialog();
         deleteDialog.ConfirmDelete();
     }
 }
示例#3
0
 public void Delete()
 {
     if (_deleteButton.IsExist())
     {
         _deleteButton.ClickByJS();
         Wait.WaitForAjaxReady(By.CssSelector(".locking-mask-loading"));
         var confirmDialog = new DeleteConfirmationDialog();
         confirmDialog.ConfirmDelete();
     }
 }
示例#4
0
 public void Delete()
 {
     try
     {
         if (_deleteButton.IsExist())
         {
             _deleteButton.Click();
             Wait.WaitForAjaxReady(By.CssSelector(".locking-mask"));
             var confirmDeleteDialog = new DeleteConfirmationDialog();
             confirmDeleteDialog.ConfirmDelete();
         }
     }
     catch (Exception) { }
 }