assertTrue(-1 != commandText.indexOf("DAS Command:"));//heading
assertTrue(-1 != commandText.indexOf("ExecuteCommand"));//button text
//list values
HtmlForm commandForm = commandPage.getFormByName("DasForm");
HtmlSelect commandList = (HtmlSelect)commandForm.getHtmlElementById("DasCommand");
List commandListOptions = commandList.getOptions();
//System.out.println(" commandListOptionsText-->\n" + commandListOptions.toString());
String allOptionsText = "";
for(int i=0; i<commandListOptions.size(); i++){
HtmlOption curOption = (HtmlOption)commandListOptions.get(i);
String curOptionText = curOption.getValueAttribute();
allOptionsText = allOptionsText + curOptionText;
if(curOptionText.equals("DeleteDepartmentFromFirstCompany")){
commandList.setSelectedAttribute(curOption, true);
//System.out.println("delete option..."+curOptionText);
}
}
assertTrue(-1 != allOptionsText.indexOf("NullCommand"));//check each option
assertTrue(-1 != allOptionsText.indexOf("AllCompanies"));//check each option