Package org.lightadmin.field

Examples of org.lightadmin.field.MultiSelect


  public void clearSelection( String fieldName ) {
    getSelectField( fieldName ).clear();
  }

  public void replaceFieldSelections( String fieldName, String[] optionsToRemove, String[] optionsToAdd ) {
    new MultiSelect( getMultiSelectElement( fieldName ), seleniumContext ).replaceSelections( optionsToRemove, optionsToAdd );
  }
View Full Code Here


  }

  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 );
  }
View Full Code Here

TOP

Related Classes of org.lightadmin.field.MultiSelect

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.