[3782] | 1 | package org.expressolivre.cte.pages.email; |
---|
[3745] | 2 | |
---|
[3782] | 3 | import org.expressolivre.cte.pages.common.Page; |
---|
[3745] | 4 | import org.openqa.selenium.WebDriver; |
---|
| 5 | import org.openqa.selenium.WebElement; |
---|
| 6 | import org.openqa.selenium.support.FindBy; |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | /** |
---|
| 10 | * @author L.F.Estivalet (Serpro) |
---|
| 11 | * |
---|
| 12 | * Created on Feb 3, 2011 at 11:03:45 AM |
---|
| 13 | * |
---|
| 14 | */ |
---|
[4627] | 15 | public class MailPreferencesPage extends Page { |
---|
[3745] | 16 | |
---|
| 17 | /** Utilizar nome (CN) ao invés de login (uid) em pastas compartilhadas? */ |
---|
| 18 | @FindBy(name = "user[uid2cn]") |
---|
| 19 | private WebElement userCNInSharedFolders; |
---|
| 20 | |
---|
| 21 | /** Você deseja exibir automaticamente o cabecalho da mensagem? */ |
---|
| 22 | @FindBy(name = "user[show_head_msg_full]") |
---|
| 23 | private WebElement showHeadMsgFull; |
---|
| 24 | |
---|
| 25 | /** Qual o número máximo de mensagens por página? */ |
---|
| 26 | @FindBy(name = "user[max_email_per_page]") |
---|
| 27 | private WebElement maxEmailPerPage; |
---|
| 28 | |
---|
| 29 | /** Pré-visualizar a mensagem na coluna Assunto? */ |
---|
| 30 | @FindBy(name = "user[preview_msg_subject]") |
---|
| 31 | private WebElement previewMsgSubject; |
---|
| 32 | |
---|
| 33 | /** Pré-visualizar a mensagem em uma caixa tool-tip? */ |
---|
| 34 | @FindBy(name = "user[preview_msg_tip]") |
---|
| 35 | private WebElement previewMsgTip; |
---|
| 36 | |
---|
| 37 | /** View extended information about users* */ |
---|
| 38 | @FindBy(name = "user[extended_info]") |
---|
| 39 | private WebElement extendedInfo; |
---|
| 40 | |
---|
| 41 | /** Salvar mensagens excluÃdas na pasta Lixeira? */ |
---|
| 42 | @FindBy(name = "user[save_deleted_msg]") |
---|
| 43 | private WebElement saveDeletedMsg; |
---|
| 44 | |
---|
| 45 | /** Apagar mensagens após quantos dias na lixeira? */ |
---|
| 46 | @FindBy(name = "user[delete_trash_messages_after_n_days]") |
---|
| 47 | private WebElement deleteTrashMessagesAfterNDays; |
---|
| 48 | |
---|
| 49 | /** Você gostaria de usar mensagens locais? */ |
---|
| 50 | @FindBy(name = "user[use_local_messages]") |
---|
| 51 | private WebElement useLocalMessages; |
---|
| 52 | |
---|
| 53 | /** Ação desejada ao arquivar mensagem nas pastas locais */ |
---|
| 54 | @FindBy(name = "user[keep_archived_messages]") |
---|
| 55 | private WebElement keepArchivedMessages; |
---|
| 56 | |
---|
| 57 | /** Criar automáticamente pastas locais padrão? */ |
---|
| 58 | @FindBy(name = "user[auto_create_local]") |
---|
| 59 | private WebElement autoCreateLocal; |
---|
| 60 | |
---|
| 61 | /** Exibir mensagem anterior, após apagar mensagem atual? */ |
---|
| 62 | @FindBy(name = "user[delete_and_show_previous_message]") |
---|
| 63 | private WebElement deleteAndShowPreviousMessage; |
---|
| 64 | |
---|
| 65 | /** Você quer receber um alerta para mensagens novas? */ |
---|
| 66 | @FindBy(name = "user[alert_new_msg]") |
---|
| 67 | private WebElement alertNewMsg; |
---|
| 68 | |
---|
| 69 | /** Exibir resumo do ExpressoMail na tela inicial do Expresso? */ |
---|
| 70 | @FindBy(name = "user[mainscreen_showmail]") |
---|
| 71 | private WebElement mainScreenShowMail; |
---|
| 72 | |
---|
| 73 | /** Você gostaria de usar a função de desanexar? */ |
---|
| 74 | @FindBy(name = "user[remove_attachments_function]") |
---|
| 75 | private WebElement removeAttachmentsFunction; |
---|
| 76 | |
---|
| 77 | /** Você gostaria de usar a flag de importante na edição de emails? */ |
---|
| 78 | @FindBy(name = "user[use_important_flag]") |
---|
| 79 | private WebElement useImportantFlag; |
---|
| 80 | |
---|
| 81 | /** Quer usar o corretor ortográfico no editor de emails? */ |
---|
| 82 | @FindBy(name = "user[use_SpellChecker]") |
---|
| 83 | private WebElement useSpellChecker; |
---|
| 84 | |
---|
| 85 | /** Salvar automaticamente as mensagens enviadas na pasta */ |
---|
| 86 | @FindBy(name = "user[save_in_folder]") |
---|
| 87 | private WebElement saveInFolder; |
---|
| 88 | |
---|
| 89 | /** |
---|
| 90 | * Trocar remetente pelo destinatário na coluna QUEM somente na pasta |
---|
| 91 | * Enviado |
---|
| 92 | */ |
---|
| 93 | @FindBy(name = "user[from_to_sent]") |
---|
| 94 | private WebElement fromToSent; |
---|
| 95 | |
---|
| 96 | /** Ocultar menu das pastas? */ |
---|
| 97 | @FindBy(name = "user[hide_folders]") |
---|
| 98 | private WebElement hideFolders; |
---|
| 99 | |
---|
| 100 | /** Qual o número máximo de resultados na busca de e-mails? */ |
---|
| 101 | @FindBy(name = "user[search_result_number]") |
---|
| 102 | private WebElement searchResultNumber; |
---|
| 103 | |
---|
| 104 | /** Qual é o número mÃnimo de caracteres ao pesquisar contatos? */ |
---|
| 105 | @FindBy(name = "user[search_characters_number]") |
---|
| 106 | private WebElement searchCharactersNumber; |
---|
| 107 | |
---|
| 108 | /** Qual a altura das linhas na lista de mensagens? */ |
---|
| 109 | @FindBy(name = "user[line_height]") |
---|
| 110 | private WebElement lineHeight; |
---|
| 111 | |
---|
| 112 | /** |
---|
| 113 | * Você quer que se aumente o limite de tamanho de emails que são mostrados? |
---|
| 114 | */ |
---|
| 115 | @FindBy(name = "user[max_msg_size]") |
---|
| 116 | private WebElement maxMsgSize; |
---|
| 117 | |
---|
| 118 | /** Usar contatos dinâmicos? */ |
---|
| 119 | @FindBy(name = "user[use_dynamic_contacts]") |
---|
| 120 | private WebElement useDynamicContacts; |
---|
| 121 | |
---|
| 122 | /** Usar teclas de atalho? */ |
---|
| 123 | @FindBy(name = "user[use_shortcuts]") |
---|
| 124 | private WebElement useShortcuts; |
---|
| 125 | |
---|
| 126 | /** Salvar rascunhos automaticamente */ |
---|
| 127 | @FindBy(name = "user[auto_save_draft]") |
---|
| 128 | private WebElement autoSaveDraft; |
---|
| 129 | |
---|
| 130 | /** Qual o seu fuso-horário? */ |
---|
| 131 | @FindBy(name = "user[timezone]") |
---|
| 132 | private WebElement timezone; |
---|
| 133 | |
---|
| 134 | /** Aonde a pesquisa rápida deve atuar por padrão? */ |
---|
| 135 | @FindBy(name = "user[quick_search_default]") |
---|
| 136 | private WebElement quickSearchDefault; |
---|
| 137 | |
---|
| 138 | /** Qual o tamanho máximo das imagens inseridas nos emails? */ |
---|
| 139 | @FindBy(name = "user[image_size]") |
---|
| 140 | private WebElement imageSize; |
---|
| 141 | |
---|
| 142 | /** Possibilitar assinar/cifrar digitalmente a mensagem? */ |
---|
| 143 | @FindBy(name = "user[use_signature_digital_cripto]") |
---|
| 144 | private WebElement useSignatureDigitalCripto; |
---|
| 145 | |
---|
| 146 | /** Sempre assinar digitalmente a mensagem? */ |
---|
| 147 | @FindBy(name = "user[use_signature_digital]") |
---|
| 148 | private WebElement useSignatureDigital; |
---|
| 149 | |
---|
| 150 | /** Sempre cifrar digitalmente a mensagem? */ |
---|
| 151 | @FindBy(name = "user[use_signature_cripto]") |
---|
| 152 | private WebElement useSignatureCripto; |
---|
| 153 | |
---|
| 154 | /** Inserir assinatura automaticamente em novas mensagens? */ |
---|
| 155 | @FindBy(name = "user[use_signature]") |
---|
| 156 | private WebElement useSignature; |
---|
| 157 | |
---|
| 158 | /** Tipo de Assinatura */ |
---|
| 159 | @FindBy(name = "user[type_signature]") |
---|
| 160 | private WebElement typeSignature; |
---|
| 161 | |
---|
| 162 | @FindBy(name = "submit") |
---|
| 163 | private WebElement savePreferences; |
---|
| 164 | |
---|
[4627] | 165 | public MailPreferencesPage(WebDriver driver) { |
---|
[3745] | 166 | super(driver); |
---|
| 167 | // TODO Auto-generated constructor stub |
---|
| 168 | } |
---|
| 169 | |
---|
| 170 | public void savePreferences() { |
---|
| 171 | this.savePreferences.click(); |
---|
| 172 | } |
---|
| 173 | |
---|
| 174 | /** |
---|
| 175 | * @param userCNInSharedFolders |
---|
| 176 | * the userCNInSharedFolders to set |
---|
| 177 | */ |
---|
| 178 | public void setUserCNInSharedFolders(String userCNInSharedFolders) { |
---|
| 179 | System.out.println("setting..."); |
---|
| 180 | super.setComboValue(this.userCNInSharedFolders, userCNInSharedFolders); |
---|
| 181 | } |
---|
| 182 | |
---|
| 183 | /** |
---|
| 184 | * @param showHeadMsgFull |
---|
| 185 | * the showHeadMsgFull to set |
---|
| 186 | */ |
---|
| 187 | public void setShowHeadMsgFull(String showHeadMsgFull) { |
---|
| 188 | super.setComboValue(this.showHeadMsgFull, showHeadMsgFull); |
---|
| 189 | } |
---|
| 190 | |
---|
| 191 | /** |
---|
| 192 | * @param maxEmailPerPage |
---|
| 193 | * the maxEmailPerPage to set |
---|
| 194 | */ |
---|
| 195 | public void setMaxEmailPerPage(String maxEmailPerPage) { |
---|
| 196 | super.setComboValue(this.maxEmailPerPage, maxEmailPerPage); |
---|
| 197 | } |
---|
| 198 | |
---|
| 199 | /** |
---|
| 200 | * @param previewMsgSubject |
---|
| 201 | * the previewMsgSubject to set |
---|
| 202 | */ |
---|
| 203 | public void setPreviewMsgSubject(String previewMsgSubject) { |
---|
| 204 | super.setComboValue(this.previewMsgSubject, previewMsgSubject); |
---|
| 205 | } |
---|
| 206 | |
---|
| 207 | /** |
---|
| 208 | * @param previewMsgTip |
---|
| 209 | * the previewMsgTip to set |
---|
| 210 | */ |
---|
| 211 | public void setPreviewMsgTip(String previewMsgTip) { |
---|
| 212 | super.setComboValue(this.previewMsgTip, previewMsgTip); |
---|
| 213 | } |
---|
| 214 | |
---|
| 215 | /** |
---|
| 216 | * @param extendedInfo |
---|
| 217 | * the extendedInfo to set |
---|
| 218 | */ |
---|
| 219 | public void setExtendedInfo(String extendedInfo) { |
---|
| 220 | super.setComboValue(this.extendedInfo, extendedInfo); |
---|
| 221 | } |
---|
| 222 | |
---|
| 223 | /** |
---|
| 224 | * @param saveDeletedMsg |
---|
| 225 | * the saveDeletedMsg to set |
---|
| 226 | */ |
---|
| 227 | public void setSaveDeletedMsg(String saveDeletedMsg) { |
---|
| 228 | super.setComboValue(this.saveDeletedMsg, saveDeletedMsg); |
---|
| 229 | } |
---|
| 230 | |
---|
| 231 | /** |
---|
| 232 | * @param deleteTrashMessagesAfterNDays |
---|
| 233 | * the deleteTrashMessagesAfterNDays to set |
---|
| 234 | */ |
---|
| 235 | public void setDeleteTrashMessagesAfterNDays( |
---|
| 236 | String deleteTrashMessagesAfterNDays) { |
---|
| 237 | super.setComboValue(this.deleteTrashMessagesAfterNDays, |
---|
| 238 | deleteTrashMessagesAfterNDays); |
---|
| 239 | } |
---|
| 240 | |
---|
| 241 | /** |
---|
| 242 | * @param useLocalMessages |
---|
| 243 | * the useLocalMessages to set |
---|
| 244 | */ |
---|
| 245 | public void setUseLocalMessages(String useLocalMessages) { |
---|
| 246 | super.setComboValue(this.useLocalMessages, useLocalMessages); |
---|
| 247 | } |
---|
| 248 | |
---|
| 249 | /** |
---|
| 250 | * @param keepArchivedMessages |
---|
| 251 | * the keepArchivedMessages to set |
---|
| 252 | */ |
---|
| 253 | public void setKeepArchivedMessages(String keepArchivedMessages) { |
---|
| 254 | super.setComboValue(this.keepArchivedMessages, keepArchivedMessages); |
---|
| 255 | } |
---|
| 256 | |
---|
| 257 | /** |
---|
| 258 | * @param autoCreateLocal |
---|
| 259 | * the autoCreateLocal to set |
---|
| 260 | */ |
---|
| 261 | public void setAutoCreateLocal(String autoCreateLocal) { |
---|
| 262 | super.setComboValue(this.autoCreateLocal, autoCreateLocal); |
---|
| 263 | } |
---|
| 264 | |
---|
| 265 | /** |
---|
| 266 | * @param deleteAndShowPreviousMessage |
---|
| 267 | * the deleteAndShowPreviousMessage to set |
---|
| 268 | */ |
---|
| 269 | public void setDeleteAndShowPreviousMessage( |
---|
| 270 | String deleteAndShowPreviousMessage) { |
---|
| 271 | super.setComboValue(this.deleteAndShowPreviousMessage, |
---|
| 272 | deleteAndShowPreviousMessage); |
---|
| 273 | } |
---|
| 274 | |
---|
| 275 | /** |
---|
| 276 | * @param alertNewMsg |
---|
| 277 | * the alertNewMsg to set |
---|
| 278 | */ |
---|
| 279 | public void setAlertNewMsg(String alertNewMsg) { |
---|
| 280 | super.setComboValue(this.alertNewMsg, alertNewMsg); |
---|
| 281 | } |
---|
| 282 | |
---|
| 283 | /** |
---|
| 284 | * @param mainScreenShowMail |
---|
| 285 | * the mainScreenShowMail to set |
---|
| 286 | */ |
---|
| 287 | public void setMainScreenShowMail(String mainScreenShowMail) { |
---|
| 288 | super.setComboValue(this.mainScreenShowMail, mainScreenShowMail); |
---|
| 289 | } |
---|
| 290 | |
---|
| 291 | /** |
---|
| 292 | * @param removeAttachmentsFunction |
---|
| 293 | * the removeAttachmentsFunction to set |
---|
| 294 | */ |
---|
| 295 | public void setRemoveAttachmentsFunction(String removeAttachmentsFunction) { |
---|
| 296 | super.setComboValue(this.removeAttachmentsFunction, |
---|
| 297 | removeAttachmentsFunction); |
---|
| 298 | } |
---|
| 299 | |
---|
| 300 | /** |
---|
| 301 | * @param useImportantFlag |
---|
| 302 | * the useImportantFlag to set |
---|
| 303 | */ |
---|
| 304 | public void setUseImportantFlag(String useImportantFlag) { |
---|
| 305 | super.setComboValue(this.useImportantFlag, useImportantFlag); |
---|
| 306 | } |
---|
| 307 | |
---|
| 308 | /** |
---|
| 309 | * @param useSpellChecker |
---|
| 310 | * the useSpellChecker to set |
---|
| 311 | */ |
---|
| 312 | public void setUseSpellChecker(String useSpellChecker) { |
---|
| 313 | super.setComboValue(this.useSpellChecker, useSpellChecker); |
---|
| 314 | } |
---|
| 315 | |
---|
| 316 | /** |
---|
| 317 | * @param saveInFolder |
---|
| 318 | * the saveInFolder to set |
---|
| 319 | */ |
---|
| 320 | public void setSaveInFolder(String saveInFolder) { |
---|
| 321 | super.setComboValue(this.saveInFolder, saveInFolder); |
---|
| 322 | } |
---|
| 323 | |
---|
| 324 | /** |
---|
| 325 | * @param fromToSent |
---|
| 326 | * the fromToSent to set |
---|
| 327 | */ |
---|
| 328 | public void setFromToSent(String fromToSent) { |
---|
| 329 | super.setComboValue(this.fromToSent, fromToSent); |
---|
| 330 | } |
---|
| 331 | |
---|
| 332 | /** |
---|
| 333 | * @param hideFolders |
---|
| 334 | * the hideFolders to set |
---|
| 335 | */ |
---|
| 336 | public void setHideFolders(String hideFolders) { |
---|
| 337 | super.setComboValue(this.hideFolders, hideFolders); |
---|
| 338 | } |
---|
| 339 | |
---|
| 340 | /** |
---|
| 341 | * @param searchResultNumber |
---|
| 342 | * the searchResultNumber to set |
---|
| 343 | */ |
---|
| 344 | public void setSearchResultNumber(String searchResultNumber) { |
---|
| 345 | super.setComboValue(this.searchResultNumber, searchResultNumber); |
---|
| 346 | } |
---|
| 347 | |
---|
| 348 | /** |
---|
| 349 | * @param searchCharactersNumber |
---|
| 350 | * the searchCharactersNumber to set |
---|
| 351 | */ |
---|
| 352 | public void setSearchCharactersNumber(String searchCharactersNumber) { |
---|
| 353 | super.setComboValue(this.searchCharactersNumber, searchCharactersNumber); |
---|
| 354 | } |
---|
| 355 | |
---|
| 356 | /** |
---|
| 357 | * @param lineHeight |
---|
| 358 | * the lineHeight to set |
---|
| 359 | */ |
---|
| 360 | public void setLineHeight(String lineHeight) { |
---|
| 361 | super.setComboValue(this.lineHeight, lineHeight); |
---|
| 362 | } |
---|
| 363 | |
---|
| 364 | /** |
---|
| 365 | * @param maxMsgSize |
---|
| 366 | * the maxMsgSize to set |
---|
| 367 | */ |
---|
| 368 | public void setMaxMsgSize(String maxMsgSize) { |
---|
| 369 | super.setComboValue(this.maxMsgSize, maxMsgSize); |
---|
| 370 | } |
---|
| 371 | |
---|
| 372 | /** |
---|
| 373 | * @param useDynamicContacts |
---|
| 374 | * the useDynamicContacts to set |
---|
| 375 | */ |
---|
| 376 | public void setUseDynamicContacts(String useDynamicContacts) { |
---|
| 377 | super.setComboValue(this.useDynamicContacts, useDynamicContacts); |
---|
| 378 | } |
---|
| 379 | |
---|
| 380 | /** |
---|
| 381 | * @param useShortcuts |
---|
| 382 | * the useShortcuts to set |
---|
| 383 | */ |
---|
| 384 | public void setUseShortcuts(String useShortcuts) { |
---|
| 385 | super.setComboValue(this.useShortcuts, useShortcuts); |
---|
| 386 | } |
---|
| 387 | |
---|
| 388 | /** |
---|
| 389 | * @param autoSaveDraft |
---|
| 390 | * the autoSaveDraft to set |
---|
| 391 | */ |
---|
| 392 | public void setAutoSaveDraft(String autoSaveDraft) { |
---|
| 393 | super.setComboValue(this.autoSaveDraft, autoSaveDraft); |
---|
| 394 | } |
---|
| 395 | |
---|
| 396 | /** |
---|
| 397 | * @param timezone |
---|
| 398 | * the timezone to set |
---|
| 399 | */ |
---|
| 400 | public void setTimezone(String timezone) { |
---|
| 401 | super.setComboValue(this.timezone, timezone); |
---|
| 402 | } |
---|
| 403 | |
---|
| 404 | /** |
---|
| 405 | * @param quickSearchDefault |
---|
| 406 | * the quickSearchDefault to set |
---|
| 407 | */ |
---|
| 408 | public void setQuickSearchDefault(String quickSearchDefault) { |
---|
| 409 | super.setComboValue(this.quickSearchDefault, quickSearchDefault); |
---|
| 410 | } |
---|
| 411 | |
---|
| 412 | /** |
---|
| 413 | * @param imageSize |
---|
| 414 | * the imageSize to set |
---|
| 415 | */ |
---|
| 416 | public void setImageSize(String imageSize) { |
---|
| 417 | super.setComboValue(this.imageSize, imageSize); |
---|
| 418 | } |
---|
| 419 | |
---|
| 420 | /** |
---|
| 421 | * @param useSignatureDigitalCripto |
---|
| 422 | * the useSignatureDigitalCripto to set |
---|
| 423 | */ |
---|
| 424 | public void setUseSignatureDigitalCripto(String useSignatureDigitalCripto) { |
---|
| 425 | super.setComboValue(this.useSignatureDigitalCripto, |
---|
| 426 | useSignatureDigitalCripto); |
---|
| 427 | } |
---|
| 428 | |
---|
| 429 | /** |
---|
| 430 | * @param useSignatureDigital |
---|
| 431 | * the useSignatureDigital to set |
---|
| 432 | */ |
---|
| 433 | public void setUseSignatureDigital(String useSignatureDigital) { |
---|
| 434 | super.setComboValue(this.useSignatureDigital, useSignatureDigital); |
---|
| 435 | } |
---|
| 436 | |
---|
| 437 | /** |
---|
| 438 | * @param useSignatureCripto |
---|
| 439 | * the useSignatureCripto to set |
---|
| 440 | */ |
---|
| 441 | public void setUseSignatureCripto(String useSignatureCripto) { |
---|
| 442 | super.setComboValue(this.useSignatureCripto, useSignatureCripto); |
---|
| 443 | } |
---|
| 444 | |
---|
| 445 | /** |
---|
| 446 | * @param useSignature |
---|
| 447 | * the useSignature to set |
---|
| 448 | */ |
---|
| 449 | public void setUseSignature(String useSignature) { |
---|
| 450 | super.setComboValue(this.useSignature, useSignature); |
---|
| 451 | } |
---|
| 452 | |
---|
| 453 | /** |
---|
| 454 | * @param typeSignature |
---|
| 455 | * the typeSignature to set |
---|
| 456 | */ |
---|
| 457 | public void setTypeSignature(String typeSignature) { |
---|
| 458 | super.setComboValue(this.typeSignature, typeSignature); |
---|
| 459 | } |
---|
| 460 | |
---|
| 461 | /** |
---|
| 462 | * @param savePreferences |
---|
| 463 | * the savePreferences to set |
---|
| 464 | */ |
---|
| 465 | public void setSavePreferences(String savePreferences) { |
---|
| 466 | super.setComboValue(this.savePreferences, savePreferences); |
---|
| 467 | } |
---|
| 468 | |
---|
| 469 | } |
---|