Ejemplo n.º 1
0
        public void schoolDelete()
        {
            SeleniumHelper.Get(SimsBy.AutomationId("delete_button")).ClickByJS();
            var confirmDeleteDialog = new DeleteConfirmationDialog();

            confirmDeleteDialog.ConfirmDelete();
        }
Ejemplo n.º 2
0
 public DeleteConfirmationResult ShowDeleteConfirmationDialog(string path)
 {
     var result = DeleteConfirmationResult.Cancel;
     var dialog = new DeleteConfirmationDialog(path);
     if (dialog.ShowDialog() == true) result = dialog.Result;
     return result;
 }
Ejemplo n.º 3
0
 public void Delete()
 {
     if (_deleteButton.IsExist())
     {
         Retry.Do(_deleteButton.ClickByJS);
         Wait.WaitForAjaxReady(By.CssSelector(".locking-mask"));
         var deleteDialog = new DeleteConfirmationDialog();
         deleteDialog.ConfirmDelete();
     }
 }
Ejemplo n.º 4
0
 public void Delete()
 {
     if (_deleteButton.IsExist())
     {
         _deleteButton.ClickByJS();
         Wait.WaitForAjaxReady(By.CssSelector(".locking-mask-loading"));
         var confirmDialog = new DeleteConfirmationDialog();
         confirmDialog.ConfirmDelete();
     }
 }
Ejemplo n.º 5
0
 public MedicalPracticePage CancelDeleteSchoolIntake()
 {
     if (_deleteButton.IsExist())
     {
         _deleteButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
         var confirmDialog = new DeleteConfirmationDialog();
         confirmDialog.CancelDelete();
     }
     return(new MedicalPracticePage());
 }
Ejemplo n.º 6
0
 public void Delete()
 {
     try
     {
         if (_deleteButton.IsExist())
         {
             _deleteButton.Click();
             Wait.WaitForAjaxReady(By.CssSelector(".locking-mask"));
             var confirmDeleteDialog = new DeleteConfirmationDialog();
             confirmDeleteDialog.ConfirmDelete();
         }
     }
     catch (Exception) { }
 }
Ejemplo n.º 7
0
        public void ClickYesButton()
        {
            DeleteConfirmationDialog deletedialog = new DeleteConfirmationDialog();

            deletedialog.ClickYesButton();
        }