Пример #1
0
 public void WhenUserGoToDepartmentInbox(string dept)
 {
     driver = driverFactory.GetDriver();
     deptMessageInboxPage = new Pages.DeptMessages.InboxPage(driver);
     deptMessageInboxPage.NavigateToQADeptInbox(driver);
     inboxPage = new InboxPage(driver);
 }
 public void WhenUserGoToDeptMessagesInternalDocument()
 {
     driver               = driverFactory.GetDriver();
     inboxPage            = new InboxPage(driver);
     deptMessageInboxPage = new Pages.DeptMessages.InboxPage(driver);
     deptMessageInboxPage.NavigateToQADeptInbox(driver);
     inboxPage.CheckButtonClickable(driver, "Internal Document");
 }
 public void WhenUserOpensDepartmentMailWithSubject(string dept, string subject)
 {
     driver = driverFactory.GetDriver();
     deptMessageInboxPage = new Pages.DeptMessages.InboxPage(driver);
     deptMessageInboxPage.NavigateToQADeptInbox(driver);
     inboxPage = new InboxPage(driver);
     inboxPage.OpenMail(driver, subject);
 }
 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);
 }
 public void WhenUserSendsAnDeparmentInternalMessageWithPropertiesWithAttachments(string level, string receiverType, string to, string subject, string content, string securityLevel, int attachmentNo, string attachmentType, string dept)
 {
     driver               = driverFactory.GetDriver();
     inboxPage            = new InboxPage(driver);
     deptMessageInboxPage = new Pages.DeptMessages.InboxPage(driver);
     readFromConfig       = new ReadFromConfig();
     deptMessageInboxPage.NavigateToQADeptInbox(driver);
     inboxPage.CheckButtonClickable(driver, "Internal Document");
     inboxPage.ClickToButton(driver);
     inboxPage.SelectLevel(driver, level);
     inboxPage.SelectReceiverType(driver, receiverType);
     inboxPage.SearchNameCode = readFromConfig.GetValue(to);
     inboxPage.SelectToUser(driver, readFromConfig.GetValue(to));
     inboxPage.ClickOkBtn();
     inboxPage.SendMail(subject, content, multipleAttachementNo: attachmentNo, multipleAttachmentType: attachmentType, securityLevel: readFromConfig.GetValue(securityLevel));
 }