public class IMAPConnectPlugin
extends et.seleniet.api.ElementIndependentKeywordPlugin
implements et.seleniet.api.NoStepScreenshot
This plugin opens a connection to an IMAP server and stores it as a named connection so that multiple connections can be kept open and used at the same time.
| Modifier and Type | Field and Description |
|---|---|
protected static HashMap<String,javax.mail.Store> |
cons |
| Constructor and Description |
|---|
IMAPConnectPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected static javax.mail.Store |
connect2Imap(et.seleniet.api.Seleniet driver,
String connectionName) |
void |
execute(et.seleniet.api.Seleniet driver,
org.openqa.selenium.WebElement elem,
String page,
List<String> lineArgs,
List<String> tcParams) |
protected static int |
numMails(javax.mail.Store store,
String folderName) |
protected static com.sun.mail.imap.IMAPFolder |
processFolders(String folderName,
javax.mail.Store store,
boolean openClose) |
protected static javax.mail.Message |
readMail(javax.mail.Store store,
String folderName,
int mailindex) |
void |
tearDown() |
public void execute(et.seleniet.api.Seleniet driver,
org.openqa.selenium.WebElement elem,
String page,
List<String> lineArgs,
List<String> tcParams)
throws et.seleniet.api.SystemAbortException,
et.seleniet.api.AbortException
execute in class et.seleniet.api.KeywordPluginet.seleniet.api.SystemAbortExceptionet.seleniet.api.AbortExceptionprotected static javax.mail.Store connect2Imap(et.seleniet.api.Seleniet driver,
String connectionName)
throws javax.mail.MessagingException
javax.mail.MessagingExceptionprotected static int numMails(javax.mail.Store store,
String folderName)
throws javax.mail.MessagingException
javax.mail.MessagingExceptionprotected static javax.mail.Message readMail(javax.mail.Store store,
String folderName,
int mailindex)
throws javax.mail.MessagingException,
et.seleniet.api.AbortException
javax.mail.MessagingExceptionet.seleniet.api.AbortExceptionprotected static com.sun.mail.imap.IMAPFolder processFolders(String folderName, javax.mail.Store store, boolean openClose) throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic void tearDown()
tearDown in class et.seleniet.api.KeywordPluginCopyright © 2016 Thomas Eitzenberger. All rights reserved.