mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/CommsAddDialogHelper.java
public static WebElement retrieveCommsImageForLayerType(final WebDriver driver, final String layerTypeName)
    {
        for (WebElement table : driver.findElements(
                By.cssSelector("tbody[class='ui-datatable-data ui-widget-content']")))
        {
            for (WebElement rowName : table.findElements(By.cssSelector("tr")))
            {
                List<WebElement> tableCellsWithName = rowName.findElements(By.cssSelector("td:nth-child(2)"));

                for (WebElement cell : tableCellsWithName)
                {
                    if (cell.getText().contains(layerTypeName))
                    {
                        WebElement tableImage = rowName.findElement(By.cssSelector("td:nth-child(1)"));

                        return tableImage.findElement(By.tagName("img"));
                    }
                }
            }
        }

        return null;
    }
/**
     * Method that finds and return the WebElement that represents the specified comms layer type image on the add comms
     * stack dialog. This method returns null if the specified comms layer image cannot be found.
     * 
     * @param driver
     *            the web driver to use.
     * @param layerTypeName
     *            the name of the layer type to be retrieved.
     * @return the element that represents the specified layer type image or <code>null</code> if it cannot be found.
     */
Method that finds and return the WebElement that represents the specified comms layer type image on the add comms
stack dialog. This method returns null if the specified comms layer image cannot be found.

@param driver
the web driver to use.
@param layerTypeName
the name of the layer type to be retrieved.
@return the element that represents the specified layer type image or null if it cannot be found.
Method that finds and return the WebElement that represents the specified comms layer type image on the add comms stack dialog . This method returns null if the specified comms layer image cannot be found . @param driver the web driver to use . @param layerTypeName the name of the layer type to be retrieved . @return the element that represents the specified layer type image or null if it cannot be found .
public static WebElement retrieveCommsImageForLayerType(final WebDriver driver, final String layerTypeName)
    {
        for (WebElement table : driver.findElements(
                By.cssSelector("tbody[class='ui-datatable-data ui-widget-content']")))
        {
            for (WebElement rowName : table.findElements(By.cssSelector("tr")))
            {
                List<WebElement> tableCellsWithName = rowName.findElements(By.cssSelector("td:nth-child(2)"));
                for (WebElement cell : tableCellsWithName)
                {
                    if (cell.getText().contains(layerTypeName))
                    {
                        WebElement tableImage = rowName.findElement(By.cssSelector("td:nth-child(1)"));
                        return tableImage.findElement(By.tagName("img"));
                    }
                }
            }
        }
        return null;
    }
public static WebElement retrieveCommsImageForLayerType ( final WebDriver driver , final String layerTypeName ) { for ( WebElement table : driver . findElements ( By . cssSelector ( "tbody[class='ui-datatable-data ui-widget-content']" ) ) ) { for ( WebElement rowName : table . findElements ( By . cssSelector ( "tr" ) ) ) { List < WebElement > tableCellsWithName = rowName . findElements ( By . cssSelector ( "td:nth-child(2)" ) ) ; for ( WebElement cell : tableCellsWithName ) { if ( cell . getText ( ) . contains ( layerTypeName ) ) { WebElement tableImage = rowName . findElement ( By . cssSelector ( "td:nth-child(1)" ) ) ; return tableImage . findElement ( By . tagName ( "img" ) ) ; } } } } return null ; }
Method that finds and return the WebElement that represents the specified comms layer type image on the add comms
 stack dialog.
Method that finds and return the WebElement that represents the specified comms layer type image on the add comms stack dialog .