mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/AssetHelper.java
public static void assetCaptureData(final WebDriver driver, final String assetName, int repeatInterval) 
        throws InterruptedException
    {
        NavigationHelper.pageAndTabCheck(driver, NavigationButtonNameConstants.NAVBUT_PROP_ASSETS, ASSET_CONFIG_TAB_ID);
        
        final WebElement assetPanel = retrieveAsset(driver, assetName);
        final WebElement captureDataButton = assetPanel.findElement(By.cssSelector("button[id$='captureData']"));
        
        //Click capture data equal to the repeat interval specified.
        for (int i = 0; i < repeatInterval; i++)
        {
            // must wait as the verifier doesn't distinguish between each capture growl message, if you don't wait, it
            // will count the very first capture growl message for each button click
            GrowlVerifier.verifyAndWaitToDisappear(30, captureDataButton, "Asset captured data!");
        }
           
    }
/**
     * Function to capture data for a specified asset. If repeatInterval is greater than 0 then capture data
     * is clicked for the amount of times specified. Function assumes asset page is the current page. 
     * Method may return before all data has been returned to web GUI
     * 
     * @param driver
     *  the web driver that is to be used.
     * @param assetName
     *  the name of the asset that the action is to be performed on.
     * @param repeatInterval
     *  the number of times that capture data is to be clicked.
     */
Function to capture data for a specified asset. If repeatInterval is greater than 0 then capture data
is clicked for the amount of times specified. Function assumes asset page is the current page.
Method may return before all data has been returned to web GUI

@param driver
the web driver that is to be used.
@param assetName
the name of the asset that the action is to be performed on.
@param repeatInterval
the number of times that capture data is to be clicked.
Function to capture data for a specified asset . If repeatInterval is greater than 0 then capture data is clicked for the amount of times specified . Function assumes asset page is the current page . Method may return before all data has been returned to web GUI @param driver the web driver that is to be used . @param assetName the name of the asset that the action is to be performed on . @param repeatInterval the number of times that capture data is to be clicked .
public static void assetCaptureData(final WebDriver driver, final String assetName, int repeatInterval) 
        throws InterruptedException
    {
        NavigationHelper.pageAndTabCheck(driver, NavigationButtonNameConstants.NAVBUT_PROP_ASSETS, ASSET_CONFIG_TAB_ID);
        final WebElement assetPanel = retrieveAsset(driver, assetName);
        final WebElement captureDataButton = assetPanel.findElement(By.cssSelector("button[id$='captureData']"));
        for (int i = 0; i < repeatInterval; i++)
        {
            GrowlVerifier.verifyAndWaitToDisappear(30, captureDataButton, "Asset captured data!");
        }
    }
public static void assetCaptureData ( final WebDriver driver , final String assetName , int repeatInterval ) throws InterruptedException { NavigationHelper . pageAndTabCheck ( driver , NavigationButtonNameConstants . NAVBUT_PROP_ASSETS , ASSET_CONFIG_TAB_ID ) ; final WebElement assetPanel = retrieveAsset ( driver , assetName ) ; final WebElement captureDataButton = assetPanel . findElement ( By . cssSelector ( "button[id$='captureData']" ) ) ; for ( int i = 0 ; i < repeatInterval ; i ++ ) { GrowlVerifier . verifyAndWaitToDisappear ( 30 , captureDataButton , "Asset captured data!" ) ; } }
Function to capture data for a specified asset.
Function to capture data for a specified asset .
//Click capture data equal to the repeat interval specified. // must wait as the verifier doesn't distinguish between each capture growl message, if you don't wait, it // will count the very first capture growl message for each button click