mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/AssetHelper.java
public static WebElement retrieveAsset(final WebDriver driver, final String assetName)
    {      
        //Search the list for the asset with the matching name.
        for (final WebElement asset : driver.findElements(By.cssSelector("table[id$='assetTable']")))
        {
            if (asset.findElement(By.cssSelector("span[id*='editPanel']")).getText().equals(assetName))
            {
                return asset;
            }
        } 
        return null;
    }
/**
     * Method that finds and returns the WebElement that represents the asset. This method returns null if the
     * specified asset cannot be found.
     * 
     * @param driver
     *      Instance of the {@link WebDriver} the asset will be retrieved from.
     * @param assetName
     *      Name of the asset to be retrieved.
     * @return
     *      {@link WebElement} that represents the specified asset or <code>null</code> if it cannot be found.
     */
Method that finds and returns the WebElement that represents the asset. This method returns null if the
specified asset cannot be found.

@param driver
Instance of the  WebDriver the asset will be retrieved from.
@param assetName
Name of the asset to be retrieved.
@return
WebElement that represents the specified asset or null if it cannot be found.
Method that finds and returns the WebElement that represents the asset . This method returns null if the specified asset cannot be found . @param driver Instance of the WebDriver the asset will be retrieved from . @param assetName Name of the asset to be retrieved . @return WebElement that represents the specified asset or null if it cannot be found .
public static WebElement retrieveAsset(final WebDriver driver, final String assetName)
    {      
        for (final WebElement asset : driver.findElements(By.cssSelector("table[id$='assetTable']")))
        {
            if (asset.findElement(By.cssSelector("span[id*='editPanel']")).getText().equals(assetName))
            {
                return asset;
            }
        } 
        return null;
    }
public static WebElement retrieveAsset ( final WebDriver driver , final String assetName ) { for ( final WebElement asset : driver . findElements ( By . cssSelector ( "table[id$='assetTable']" ) ) ) { if ( asset . findElement ( By . cssSelector ( "span[id*='editPanel']" ) ) . getText ( ) . equals ( assetName ) ) { return asset ; } } return null ; }
Method that finds and returns the WebElement that represents the asset.
Method that finds and returns the WebElement that represents the asset .
//Search the list for the asset with the matching name.