mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/AssetCommandHelper.java
public static void executeSyncCommand(final WebDriver driver, final String assetName,
            final String command, final String buttonText) throws InterruptedException, 
            ExecutionException, TimeoutException
    {
        clickAccordionPanel(driver, assetName, command, ExpandCollapse.EXPAND);
        
        WebElement button = findCorrectSendButton(driver, assetName, buttonText, "syncCommand");
        assertThat(button, notNullValue());
        button.click();
        
        //verify that the growl message appeared there maybe other messages on the page, 
        //just search for the command one
        GrowlChecker.findGrowlMessage(driver, "Asset Command Synchronized:");
        
        GeneralHelper.sleepWithText(10, "Waiting for synced values to update the DOM");
    }
/**
     * Function to execute a sync command for a specified command on a specified asset.
     * @param driver
     *  the web driver to use
     * @param assetName
     *  the name of the asset that the command is to be synced on
     * @param command
     *  the name of the command that is going to be synced
     * @param buttonText
     *  the text of the sync button that is to be selected. 
     */
Function to execute a sync command for a specified command on a specified asset.
@param driver
the web driver to use
@param assetName
the name of the asset that the command is to be synced on
@param command
the name of the command that is going to be synced
@param buttonText
the text of the sync button that is to be selected.
Function to execute a sync command for a specified command on a specified asset . @param driver the web driver to use @param assetName the name of the asset that the command is to be synced on @param command the name of the command that is going to be synced @param buttonText the text of the sync button that is to be selected .
public static void executeSyncCommand(final WebDriver driver, final String assetName,
            final String command, final String buttonText) throws InterruptedException, 
            ExecutionException, TimeoutException
    {
        clickAccordionPanel(driver, assetName, command, ExpandCollapse.EXPAND);
        WebElement button = findCorrectSendButton(driver, assetName, buttonText, "syncCommand");
        assertThat(button, notNullValue());
        button.click();
        GrowlChecker.findGrowlMessage(driver, "Asset Command Synchronized:");
        GeneralHelper.sleepWithText(10, "Waiting for synced values to update the DOM");
    }
public static void executeSyncCommand ( final WebDriver driver , final String assetName , final String command , final String buttonText ) throws InterruptedException , ExecutionException , TimeoutException { clickAccordionPanel ( driver , assetName , command , ExpandCollapse . EXPAND ) ; WebElement button = findCorrectSendButton ( driver , assetName , buttonText , "syncCommand" ) ; assertThat ( button , notNullValue ( ) ) ; button . click ( ) ; GrowlChecker . findGrowlMessage ( driver , "Asset Command Synchronized:" ) ; GeneralHelper . sleepWithText ( 10 , "Waiting for synced values to update the DOM" ) ; }
Function to execute a sync command for a specified command on a specified asset.
Function to execute a sync command for a specified command on a specified asset .
//verify that the growl message appeared there maybe other messages on the page,  //just search for the command one