mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/CommsAddDialogHelper.java
public static WebElement retrieveCommsLayerType(final WebDriver driver, final String layerTypeName)
    {
        // Retrieve the list of all layer types and search for an layer type with the specified name.
        // tbody contains the <tr>s of layer types, the second <td> child of parent <tr> should contain
        // the layer type.
        for (WebElement layerType : driver.findElements(
                By.cssSelector("tbody[class='ui-datatable-data ui-widget-content']>tr>td:nth-child(2)")))
        {
            if (layerType.getText().contains(layerTypeName))
            {
                return layerType;
            }
        }
        return null;
    }
/**
     * Method that finds and returns the WebElement that represents the specified comms layer type on the add comms
     * stack dialog. This method returns null if the specified comms layer type cannot be found.
     * 
     * @param driver
     *            Instance of the {@link WebDriver} the comm type will be retrieved from.
     * @param layerTypeName
     *            Name of the layer type to be retrieved.
     * @return {@link WebElement} that represents the specified layer type or <code>null</code> if it cannot be found.
     */
Method that finds and returns the WebElement that represents the specified comms layer type on the add comms
stack dialog. This method returns null if the specified comms layer type cannot be found.

@param driver
Instance of the  WebDriver the comm type will be retrieved from.
@param layerTypeName
Name of the layer type to be retrieved.
@return  WebElement that represents the specified layer type or null if it cannot be found.
Method that finds and returns the WebElement that represents the specified comms layer type on the add comms stack dialog . This method returns null if the specified comms layer type cannot be found . @param driver Instance of the WebDriver the comm type will be retrieved from . @param layerTypeName Name of the layer type to be retrieved . @return WebElement that represents the specified layer type or null if it cannot be found .
public static WebElement retrieveCommsLayerType(final WebDriver driver, final String layerTypeName)
    {
        for (WebElement layerType : driver.findElements(
                By.cssSelector("tbody[class='ui-datatable-data ui-widget-content']>tr>td:nth-child(2)")))
        {
            if (layerType.getText().contains(layerTypeName))
            {
                return layerType;
            }
        }
        return null;
    }
public static WebElement retrieveCommsLayerType ( final WebDriver driver , final String layerTypeName ) { for ( WebElement layerType : driver . findElements ( By . cssSelector ( "tbody[class='ui-datatable-data ui-widget-content']>tr>td:nth-child(2)" ) ) ) { if ( layerType . getText ( ) . contains ( layerTypeName ) ) { return layerType ; } } return null ; }
Method that finds and returns the WebElement that represents the specified comms layer type on the add comms
 stack dialog.
Method that finds and returns the WebElement that represents the specified comms layer type on the add comms stack dialog .
// Retrieve the list of all layer types and search for an layer type with the specified name. // tbody contains the <tr>s of layer types, the second <td> child of parent <tr> should contain // the layer type.