mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/ConfigurationHelper.java
private static void updateSelectOneListBox(WebElement inputRow, String value)
    {
        WebElement buttonDiv = findSelectOneListBox(inputRow);
        
        // only click button to change to opposite value if not current value
        List<WebElement> listItems = buttonDiv.findElements(By.cssSelector("li"));
        for (WebElement listItem : listItems)
        {
            if (listItem.getText().equals(value))
            {
                listItem.click();
                return;
            }
        }
        
        throw new IllegalArgumentException(
                String.format("Unable to set value to [%s]", value));
    }
/**
     * Update the configuration property that has a select one list box.
     */
Update the configuration property that has a select one list box.
Update the configuration property that has a select one list box .
private static void updateSelectOneListBox(WebElement inputRow, String value)
    {
        WebElement buttonDiv = findSelectOneListBox(inputRow);
        List<WebElement> listItems = buttonDiv.findElements(By.cssSelector("li"));
        for (WebElement listItem : listItems)
        {
            if (listItem.getText().equals(value))
            {
                listItem.click();
                return;
            }
        }
        throw new IllegalArgumentException(
                String.format("Unable to set value to [%s]", value));
    }
private static void updateSelectOneListBox ( WebElement inputRow , String value ) { WebElement buttonDiv = findSelectOneListBox ( inputRow ) ; List < WebElement > listItems = buttonDiv . findElements ( By . cssSelector ( "li" ) ) ; for ( WebElement listItem : listItems ) { if ( listItem . getText ( ) . equals ( value ) ) { listItem . click ( ) ; return ; } } throw new IllegalArgumentException ( String . format ( "Unable to set value to [%s]" , value ) ) ; }
Update the configuration property that has a select one list box.
Update the configuration property that has a select one list box .
// only click button to change to opposite value if not current value