mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/MissionSetupHelper.java
private static WebElement searchMissionPanel(final List<WebElement> missionList, final String missionName)
    {
        for (WebElement mission: missionList)
        {
            WebElement name = mission.findElement(By.cssSelector("span[id*='missionName']"));
            if (name.getText().equals(missionName))
            {
                return mission;
            }
        }
        return null;
    }
/**
     * Method that searches the list of missions for a mission with the specified name. Returns null if the mission 
     * cannot be found.
     * 
     * @param missionList
     *          List of {@link WebElement}s that represents all missions on the current mission selection page. 
     * @param missionName
     *          Name of the mission to be retrieved.
     * @return 
     *          {@link WebElement} that represents the mission or null if it cannot be found.     
     */
Method that searches the list of missions for a mission with the specified name. Returns null if the mission
cannot be found.

@param missionList
List of  WebElements that represents all missions on the current mission selection page.
@param missionName
Name of the mission to be retrieved.
@return
WebElement that represents the mission or null if it cannot be found.
Method that searches the list of missions for a mission with the specified name . Returns null if the mission cannot be found . @param missionList List of WebElements that represents all missions on the current mission selection page . @param missionName Name of the mission to be retrieved . @return WebElement that represents the mission or null if it cannot be found .
private static WebElement searchMissionPanel(final List<WebElement> missionList, final String missionName)
    {
        for (WebElement mission: missionList)
        {
            WebElement name = mission.findElement(By.cssSelector("span[id*='missionName']"));
            if (name.getText().equals(missionName))
            {
                return mission;
            }
        }
        return null;
    }
private static WebElement searchMissionPanel ( final List < WebElement > missionList , final String missionName ) { for ( WebElement mission : missionList ) { WebElement name = mission . findElement ( By . cssSelector ( "span[id*='missionName']" ) ) ; if ( name . getText ( ) . equals ( missionName ) ) { return mission ; } } return null ; }
Method that searches the list of missions for a mission with the specified name.
Method that searches the list of missions for a mission with the specified name .