public void WhenUserAttachAnAttachmentToDept(string attachmentType, int attachmentNo)
 {
     driver               = driverFactory.GetDriver();
     inboxPage            = new InboxPage(driver);
     deptMessageInboxPage = new Pages.DeptMessages.InboxPage(driver);
     deptMessageInboxPage.NavigateToQADeptInbox(driver);
     deptMessageInboxPage.CheckButtonClickable(driver, "Internal Document");
     inboxPage.AddAttachments(attachmentType, attachmentNo);
 }
 public void WhenUserSendsAnDepartmentalInternalMessageWithAttachmentTo(string level, string receiverType, string to, string subject, string content, int multipleAttachementNo, string multipleAttachmentType, string dept)
 {
     driver               = driverFactory.GetDriver();
     inboxPage            = new InboxPage(driver);
     deptMessageInboxPage = new Pages.DeptMessages.InboxPage(driver);
     deptMessageInboxPage.NavigateToQADeptInbox(driver);
     deptMessageInboxPage.CheckButtonClickable(driver, "Internal Document");
     inboxPage.ClickToButton(driver);
     inboxPage.SelectLevel(driver, level);
     inboxPage.SelectReceiverType(driver, receiverType);
     inboxPage.SearchNameCode = to;
     inboxPage.SelectToUser(driver, to);
     inboxPage.ClickOkBtn();
     inboxPage.SendMail(subject, content, multipleAttachementNo: multipleAttachementNo, multipleAttachmentType: multipleAttachmentType);
 }