| java.lang.Object com.gargoylesoftware.htmlunit.CollectingAlertHandler
CollectingAlertHandler | public class CollectingAlertHandler implements AlertHandler(Code) | | A simple alert handler that keeps track of alerts in a list.
version: $Revision: 2132 $ author: Mike Bowler |
CollectingAlertHandler | public CollectingAlertHandler()(Code) | | Create an instance with an ArrayList
|
CollectingAlertHandler | public CollectingAlertHandler(List list)(Code) | | Create an instance with the specified list.
Parameters: list - The list to store alerts in. |
getCollectedAlerts | public List getCollectedAlerts()(Code) | | Return a list containing the message portion of any collected alerts.
a list of alert messages |
handleAlert | public void handleAlert(Page page, String message)(Code) | | Handle the alert. This implementation will store the message in a list
for retrieval later.
Parameters: page - The page that triggered the alert Parameters: message - The message in the alert. |
|
|