private BaseSelect getSelectField( String fieldName ) {
final WebElement theSelect = editForm.findElement( By.xpath( "//div[@id='" + fieldName + "-control-group']//div[contains(@class,'chzn-container')]" ) );
if ( theSelect.getAttribute( "class" ).contains( "multi" ) ) {
return new MultiSelect( theSelect, seleniumContext );
} else
return new SmartSelect( theSelect.findElement( By.xpath( "a" ) ), seleniumContext );
}