com.atlassian.pageobjects.elements
Interface MultiSelectElement

All Superinterfaces:
PageElement, PageElementFinder
All Known Implementing Classes:
WebDriverMultiSelectElement

public interface MultiSelectElement
extends PageElement

Represents a standard multi-select HTML element.


Method Summary
 List<Option> getAllOptions()
          All options
 List<Option> getSelected()
          Selected options.
 MultiSelectElement select(Option option)
          Add given option to the current selection.
 MultiSelectElement selectAll()
          Add all options to the current selection.
 MultiSelectElement unselect(Option option)
          Remove given option from the current selection
 MultiSelectElement unselectAll()
          Remove all options from the current selection
 
Methods inherited from interface com.atlassian.pageobjects.elements.PageElement
clear, click, find, findAll, getAttribute, getLocation, getSize, getTagName, getText, getValue, hasAttribute, hasClass, isEnabled, isPresent, isSelected, isVisible, javascript, select, timed, toggle, type, withTimeout
 
Methods inherited from interface com.atlassian.pageobjects.elements.PageElementFinder
find, find, find, findAll, findAll, findAll
 

Method Detail

getAllOptions

List<Option> getAllOptions()
All options

Returns:
all options of this multi-select

getSelected

List<Option> getSelected()
Selected options.

Returns:
selected options of this multi-select

select

MultiSelectElement select(Option option)
Add given option to the current selection.

Parameters:
option - option to add
Returns:
this multi-select instance

unselect

MultiSelectElement unselect(Option option)
Remove given option from the current selection

Parameters:
option - option to remove
Returns:
this multi-select instance

selectAll

MultiSelectElement selectAll()
Add all options to the current selection.

Returns:
this multi-select instance

unselectAll

MultiSelectElement unselectAll()
Remove all options from the current selection

Returns:
this multi-select instance


Copyright © 2014 Atlassian. All rights reserved.