public void SaveConfirmDelete(bool IsDialogDisplayed = false) { _saveButton.ClickByJS(); Wait.WaitForAjaxReady(By.CssSelector(".locking-mask")); if (IsDialogDisplayed) { try { POM.Components.Attendance.WarningConfirmDialog confirmDialog = new WarningConfirmDialog(); confirmDialog.ClickContinueDelete(); } catch (Exception) { } } Refresh(); }
public void Save(bool IsDialogDisplayed = false) { _saveButton.Click(); Wait.WaitForAjaxReady(By.CssSelector(".locking-mask")); if (IsDialogDisplayed) { try { WarningConfirmDialog confirmDialog = new WarningConfirmDialog(); confirmDialog.ClickOk(); } catch (Exception) { } } Refresh(); }