mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/ConfigurationHelper.java
public static String createConfigDialogHelper(String configurationName, boolean openDialog)
    {
        WebElement desiredConfig = ConfigurationHelper.findConfigurationPanel(configurationName, true);
        
        try
        {
            //try to expand the configuration so that the properties are available
            WebElement expandConfig = desiredConfig.findElement(By.
                    cssSelector("span[class='ui-icon ui-icon-plusthick']"));
            expandConfig.click();
        }
        catch (NoSuchElementException e)
        {
            //do nothing; configuration is already expanded
        }
            
        //get the row index of the configuration being tested.
        String rowNum = GeneralHelper.getElementIndex(desiredConfig.getAttribute("id"));
        if (openDialog)
        {
            //open create configuration dialog
            WebElement createConfigButton = desiredConfig.findElement(By.cssSelector("button[id$='" + rowNum 
                    + ":createConfigButton']"));

            WebDriverWait wait = new WebDriverWait(WebDriverFactory.retrieveWebDriver(), 5);
            wait.until(ExpectedConditions.visibilityOf(createConfigButton));
            createConfigButton.click();
        }        
        return rowNum;
    }
/**
     * Method which expands a specified factory configuration and will optionally open its associated
     * create configuration dialog.  
     * @param configurationName
     *      name of the factory configuration desired
     * @param openDialog
     *      Should be <code>true</code> if the create configuration dialog should be opened. <code>false</code>
     *      if the create configuration dialog should remain closed.  
     * @return
     *      String representation of the row index pointing to the factory configuration. Used to find elements
     *      external to this method that belong to a particular factory configuration.  
     */
Method which expands a specified factory configuration and will optionally open its associated
create configuration dialog.
@param configurationName
name of the factory configuration desired
@param openDialog
Should be true if the create configuration dialog should be opened. false
if the create configuration dialog should remain closed.
@return
String representation of the row index pointing to the factory configuration. Used to find elements
external to this method that belong to a particular factory configuration.
Method which expands a specified factory configuration and will optionally open its associated create configuration dialog . @param configurationName name of the factory configuration desired @param openDialog Should be true if the create configuration dialog should be opened . false if the create configuration dialog should remain closed . @return String representation of the row index pointing to the factory configuration . Used to find elements external to this method that belong to a particular factory configuration .
public static String createConfigDialogHelper(String configurationName, boolean openDialog)
    {
        WebElement desiredConfig = ConfigurationHelper.findConfigurationPanel(configurationName, true);
        try
        {
            WebElement expandConfig = desiredConfig.findElement(By.
                    cssSelector("span[class='ui-icon ui-icon-plusthick']"));
            expandConfig.click();
        }
        catch (NoSuchElementException e)
        {
        }
        String rowNum = GeneralHelper.getElementIndex(desiredConfig.getAttribute("id"));
        if (openDialog)
        {
            WebElement createConfigButton = desiredConfig.findElement(By.cssSelector("button[id$='" + rowNum 
                    + ":createConfigButton']"));
            WebDriverWait wait = new WebDriverWait(WebDriverFactory.retrieveWebDriver(), 5);
            wait.until(ExpectedConditions.visibilityOf(createConfigButton));
            createConfigButton.click();
        }        
        return rowNum;
    }
public static String createConfigDialogHelper ( String configurationName , boolean openDialog ) { WebElement desiredConfig = ConfigurationHelper . findConfigurationPanel ( configurationName , true ) ; try { WebElement expandConfig = desiredConfig . findElement ( By . cssSelector ( "span[class='ui-icon ui-icon-plusthick']" ) ) ; expandConfig . click ( ) ; } catch ( NoSuchElementException e ) { } String rowNum = GeneralHelper . getElementIndex ( desiredConfig . getAttribute ( "id" ) ) ; if ( openDialog ) { WebElement createConfigButton = desiredConfig . findElement ( By . cssSelector ( "button[id$='" + rowNum + ":createConfigButton']" ) ) ; WebDriverWait wait = new WebDriverWait ( WebDriverFactory . retrieveWebDriver ( ) , 5 ) ; wait . until ( ExpectedConditions . visibilityOf ( createConfigButton ) ) ; createConfigButton . click ( ) ; } return rowNum ; }
Method which expands a specified factory configuration and will optionally open its associated
 create configuration dialog.
Method which expands a specified factory configuration and will optionally open its associated create configuration dialog .
//try to expand the configuration so that the properties are available //do nothing; configuration is already expanded //get the row index of the configuration being tested. //open create configuration dialog