mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/GrowlChecker.java
public static WebElement findGrowlMessage(final WebDriver driver, final String title)
    {
        //Retrieve a list of all growl messages displayed.
        final List<WebElement> growlMsgs = driver.findElements(By.cssSelector("div[class='ui-growl-item']"));
        
        //Find the growl message with the specified title.
        for (final WebElement growlMsg : growlMsgs)
        {
            final WebElement growlHeader = growlMsg.findElement(By.cssSelector("span[class='ui-growl-title']"));
            
            if (growlHeader.getText().equals(title))
            {
                return growlMsg;
            }
        }
        return null;
    }
/**
     * Method used to find the element that represents the growl message with the desired title.
     * 
     * @param driver
     *          Current web driver.
     * @param title
     *          Title of the growl message to be found.
     * @return
     *          {@link WebElement} that represents the growl message being searched for.
     */
Method used to find the element that represents the growl message with the desired title.

@param driver
Current web driver.
@param title
Title of the growl message to be found.
@return
WebElement that represents the growl message being searched for.
Method used to find the element that represents the growl message with the desired title . @param driver Current web driver . @param title Title of the growl message to be found . @return WebElement that represents the growl message being searched for .
public static WebElement findGrowlMessage(final WebDriver driver, final String title)
    {
        final List<WebElement> growlMsgs = driver.findElements(By.cssSelector("div[class='ui-growl-item']"));
        for (final WebElement growlMsg : growlMsgs)
        {
            final WebElement growlHeader = growlMsg.findElement(By.cssSelector("span[class='ui-growl-title']"));
            if (growlHeader.getText().equals(title))
            {
                return growlMsg;
            }
        }
        return null;
    }
public static WebElement findGrowlMessage ( final WebDriver driver , final String title ) { final List < WebElement > growlMsgs = driver . findElements ( By . cssSelector ( "div[class='ui-growl-item']" ) ) ; for ( final WebElement growlMsg : growlMsgs ) { final WebElement growlHeader = growlMsg . findElement ( By . cssSelector ( "span[class='ui-growl-title']" ) ) ; if ( growlHeader . getText ( ) . equals ( title ) ) { return growlMsg ; } } return null ; }
Method used to find the element that represents the growl message with the desired title.
Method used to find the element that represents the growl message with the desired title .
//Retrieve a list of all growl messages displayed. //Find the growl message with the specified title.