mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/ConfigurationHelper.java
private static WebElement findConfigPropRow(WebElement table, String configName)
    {
        WebElement configInputTable = table;
        
        if (table == null)
        {
            configInputTable = WebDriverFactory.retrieveWebDriver()
                .findElement(By.cssSelector("tbody[id$='compositeConfigTable_data']"));
        }
        
        List<WebElement> configInputRows = configInputTable.findElements(By.tagName("tr"));
        for (WebElement inputRow : configInputRows)
        {
            WebElement inputBox = inputRow.findElement(By.cssSelector("span[id$='compositeConfigName']"));
            if (inputBox.getText().equals(configName))
            {
                return inputRow;
            }
        }
        
        throw new IllegalArgumentException("The property could not be found with the given name [" + configName +"]");
    }
/**
     * Find the property row for the given table or pass null if only one table.
     */
Find the property row for the given table or pass null if only one table.
Find the property row for the given table or pass null if only one table .
private static WebElement findConfigPropRow(WebElement table, String configName)
    {
        WebElement configInputTable = table;
        if (table == null)
        {
            configInputTable = WebDriverFactory.retrieveWebDriver()
                .findElement(By.cssSelector("tbody[id$='compositeConfigTable_data']"));
        }
        List<WebElement> configInputRows = configInputTable.findElements(By.tagName("tr"));
        for (WebElement inputRow : configInputRows)
        {
            WebElement inputBox = inputRow.findElement(By.cssSelector("span[id$='compositeConfigName']"));
            if (inputBox.getText().equals(configName))
            {
                return inputRow;
            }
        }
        throw new IllegalArgumentException("The property could not be found with the given name [" + configName +"]");
    }
private static WebElement findConfigPropRow ( WebElement table , String configName ) { WebElement configInputTable = table ; if ( table == null ) { configInputTable = WebDriverFactory . retrieveWebDriver ( ) . findElement ( By . cssSelector ( "tbody[id$='compositeConfigTable_data']" ) ) ; } List < WebElement > configInputRows = configInputTable . findElements ( By . tagName ( "tr" ) ) ; for ( WebElement inputRow : configInputRows ) { WebElement inputBox = inputRow . findElement ( By . cssSelector ( "span[id$='compositeConfigName']" ) ) ; if ( inputBox . getText ( ) . equals ( configName ) ) { return inputRow ; } } throw new IllegalArgumentException ( "The property could not be found with the given name [" + configName + "]" ) ; }
Find the property row for the given table or pass null if only one table.
Find the property row for the given table or pass null if only one table .