public void Delete()
 {
     if (_deleteButton.IsExist())
     {
         _deleteButton.ClickByJS();
         Wait.WaitForAjaxReady(By.CssSelector(".locking-mask"));
         var deleteConfirmationPage = new WarningConfirmationDialog();
         deleteConfirmationPage.ConfirmDelete();
     }
 }
 public void Delete()
 {
     if (_deleteButton.IsExist())
     {
         _deleteButton.Click();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
         WarningConfirmationDialog deleteDialog = new WarningConfirmationDialog();
         deleteDialog.ConfirmDelete();
     }
 }