public void WhenSearch(string to, string level, string receiverType) { readFromConfig = new ReadFromConfig(); inboxPage.ClickToButton(driver); inboxPage.SelectLevel(driver, readFromConfig.GetValue(level)); inboxPage.SelectReceiverType(driver, receiverType); inboxPage.SearchNameCode = readFromConfig.GetValue(to); inboxPage.SelectToUser(driver, readFromConfig.GetValue(to)); inboxPage.ClickOkBtn(); }
public void WhenUserSendsAnInternalMessageWithAttachmentTo(string level, string receiverType, string to, string subject, string content, int multipleAttachementNo, string multipleAttachmentType) { driver = driverFactory.GetDriver(); inboxPage = new InboxPage(driver); inboxPage.NavigateToMyMessageInbox(driver); inboxPage.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 WhenUserSendsAnEncryptedMessageTo(string level, string receiverType, string to, string subject, string content, string encryptPassword) { driver = driverFactory.GetDriver(); myMessageInboxPage = new InboxPage(driver); myMessageInboxPage.NavigateToMyMessageInbox(driver); myMessageInboxPage.CheckButtonClickable(driver, "Encrypted internal message"); myMessageInboxPage.ClickToButton(driver); myMessageInboxPage.SelectLevel(driver, readFromConfig.GetValue(level)); myMessageInboxPage.SelectReceiverType(driver, receiverType); myMessageInboxPage.SearchNameCode = readFromConfig.GetValue(to); myMessageInboxPage.SelectToUser(driver, readFromConfig.GetValue(to)); myMessageInboxPage.ClickOkBtn(); myMessageInboxPage.SendMail(subject, content); }
public void WhenUserSendsAnInternalMessageWithProperties(string level, string receiverType, string to, string subject, string content, string securityLevel, int attachmentNo, string attachmentType) { driver = driverFactory.GetDriver(); inboxPage = new InboxPage(driver); readFromConfig = new ReadFromConfig(); inboxPage.NavigateToMyMessageInbox(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)); }