예제 #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) { }
 }