mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/ConfigurationHelper.java
public static WebElement findConfigurationPanel(final String configPid, final boolean isFactory)
    {
        WebDriver driver = WebDriverFactory.retrieveWebDriver();
        
        if (isFactory)
        {
            WebElement mainFactoryConfigTable = 
                    driver.findElement(By.cssSelector("tbody[id*='factoryConfigTable_data']"));
            for (WebElement factory : mainFactoryConfigTable.findElements(By.cssSelector("div[id$='factoryPanel']")))
            {
                WebElement factoryHeader = factory.findElement(By.cssSelector("span[id$='factoryHeader']"));
                if (factoryHeader.getText().equals(configPid))
                {
                    return factory;
                }
            }
        }
        else
        {
            WebElement mainConfigTable = driver.findElement(By.cssSelector("tbody[id*='configTable_data']"));
            for (WebElement config : mainConfigTable.findElements(By.cssSelector("div[id$='configPanel']")))
            {
                WebElement configHeader = config.findElement(By.cssSelector("span[id$='configHeader']"));
                if (configHeader.getText().equals(configPid))
                {
                    return config;
                }
            }
        }
        
        throw new IllegalStateException("Unable to find panel with pid: " + configPid);
    }
/**
     * Method used to find a configuration or factory in either the configuration or factory configuration table on the
     * configuration tab of the system configuration page.
     * 
     * @param configPid
     *          PID of the configuration or factory to be found.
     * @param isFactory
     *          Boolean used to determine if a factory configuration is being searched for.
     * @return
     *          The web element that represents the configuration or factory.
     */
Method used to find a configuration or factory in either the configuration or factory configuration table on the
configuration tab of the system configuration page.

@param configPid
PID of the configuration or factory to be found.
@param isFactory
Boolean used to determine if a factory configuration is being searched for.
@return
The web element that represents the configuration or factory.
Method used to find a configuration or factory in either the configuration or factory configuration table on the configuration tab of the system configuration page . @param configPid PID of the configuration or factory to be found . @param isFactory Boolean used to determine if a factory configuration is being searched for . @return The web element that represents the configuration or factory .
public static WebElement findConfigurationPanel(final String configPid, final boolean isFactory)
    {
        WebDriver driver = WebDriverFactory.retrieveWebDriver();
        if (isFactory)
        {
            WebElement mainFactoryConfigTable = 
                    driver.findElement(By.cssSelector("tbody[id*='factoryConfigTable_data']"));
            for (WebElement factory : mainFactoryConfigTable.findElements(By.cssSelector("div[id$='factoryPanel']")))
            {
                WebElement factoryHeader = factory.findElement(By.cssSelector("span[id$='factoryHeader']"));
                if (factoryHeader.getText().equals(configPid))
                {
                    return factory;
                }
            }
        }
        else
        {
            WebElement mainConfigTable = driver.findElement(By.cssSelector("tbody[id*='configTable_data']"));
            for (WebElement config : mainConfigTable.findElements(By.cssSelector("div[id$='configPanel']")))
            {
                WebElement configHeader = config.findElement(By.cssSelector("span[id$='configHeader']"));
                if (configHeader.getText().equals(configPid))
                {
                    return config;
                }
            }
        }
        throw new IllegalStateException("Unable to find panel with pid: " + configPid);
    }
public static WebElement findConfigurationPanel ( final String configPid , final boolean isFactory ) { WebDriver driver = WebDriverFactory . retrieveWebDriver ( ) ; if ( isFactory ) { WebElement mainFactoryConfigTable = driver . findElement ( By . cssSelector ( "tbody[id*='factoryConfigTable_data']" ) ) ; for ( WebElement factory : mainFactoryConfigTable . findElements ( By . cssSelector ( "div[id$='factoryPanel']" ) ) ) { WebElement factoryHeader = factory . findElement ( By . cssSelector ( "span[id$='factoryHeader']" ) ) ; if ( factoryHeader . getText ( ) . equals ( configPid ) ) { return factory ; } } } else { WebElement mainConfigTable = driver . findElement ( By . cssSelector ( "tbody[id*='configTable_data']" ) ) ; for ( WebElement config : mainConfigTable . findElements ( By . cssSelector ( "div[id$='configPanel']" ) ) ) { WebElement configHeader = config . findElement ( By . cssSelector ( "span[id$='configHeader']" ) ) ; if ( configHeader . getText ( ) . equals ( configPid ) ) { return config ; } } } throw new IllegalStateException ( "Unable to find panel with pid: " + configPid ) ; }
Method used to find a configuration or factory in either the configuration or factory configuration table on the
 configuration tab of the system configuration page.
Method used to find a configuration or factory in either the configuration or factory configuration table on the configuration tab of the system configuration page .