com.atlassian.pageobjects.elements
Class WebDriverMultiSelectElement

java.lang.Object
  extended by com.atlassian.pageobjects.elements.WebDriverElement
      extended by com.atlassian.pageobjects.elements.WebDriverMultiSelectElement
All Implemented Interfaces:
MultiSelectElement, PageElement, PageElementFinder

public class WebDriverMultiSelectElement
extends WebDriverElement
implements MultiSelectElement

Implementation of MultiSelectElement.


Field Summary
 
Fields inherited from class com.atlassian.pageobjects.elements.WebDriverElement
defaultTimeout, driver, locatable, pageBinder, timeouts
 
Constructor Summary
WebDriverMultiSelectElement(org.openqa.selenium.By locator)
           
WebDriverMultiSelectElement(org.openqa.selenium.By locator, TimeoutType defaultTimeout)
           
WebDriverMultiSelectElement(org.openqa.selenium.By locator, WebDriverLocatable parent)
           
WebDriverMultiSelectElement(org.openqa.selenium.By locator, WebDriverLocatable parent, TimeoutType timeoutType)
           
WebDriverMultiSelectElement(WebDriverLocatable locatable, TimeoutType timeoutType)
           
 
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 class com.atlassian.pageobjects.elements.WebDriverElement
asWebElement, clear, click, createTimout, find, find, find, find, findAll, findAll, findAll, findAll, getAttribute, getLocation, getSize, getTagName, getText, getValue, hasAttribute, hasClass, isEnabled, isPresent, isSelected, isVisible, javascript, select, timed, timeout, toggle, toString, type, waitForWebElement, withTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

WebDriverMultiSelectElement

public WebDriverMultiSelectElement(org.openqa.selenium.By locator)

WebDriverMultiSelectElement

public WebDriverMultiSelectElement(org.openqa.selenium.By locator,
                                   TimeoutType defaultTimeout)

WebDriverMultiSelectElement

public WebDriverMultiSelectElement(org.openqa.selenium.By locator,
                                   WebDriverLocatable parent)

WebDriverMultiSelectElement

public WebDriverMultiSelectElement(WebDriverLocatable locatable,
                                   TimeoutType timeoutType)

WebDriverMultiSelectElement

public WebDriverMultiSelectElement(org.openqa.selenium.By locator,
                                   WebDriverLocatable parent,
                                   TimeoutType timeoutType)
Method Detail

getAllOptions

public List<Option> getAllOptions()
Description copied from interface: MultiSelectElement
All options

Specified by:
getAllOptions in interface MultiSelectElement
Returns:
all options of this multi-select

getSelected

public List<Option> getSelected()
Description copied from interface: MultiSelectElement
Selected options.

Specified by:
getSelected in interface MultiSelectElement
Returns:
selected options of this multi-select

select

public MultiSelectElement select(Option option)
Description copied from interface: MultiSelectElement
Add given option to the current selection.

Specified by:
select in interface MultiSelectElement
Parameters:
option - option to add
Returns:
this multi-select instance

unselect

public MultiSelectElement unselect(Option option)
Description copied from interface: MultiSelectElement
Remove given option from the current selection

Specified by:
unselect in interface MultiSelectElement
Parameters:
option - option to remove
Returns:
this multi-select instance

selectAll

public MultiSelectElement selectAll()
Description copied from interface: MultiSelectElement
Add all options to the current selection.

Specified by:
selectAll in interface MultiSelectElement
Returns:
this multi-select instance

unselectAll

public MultiSelectElement unselectAll()
Description copied from interface: MultiSelectElement
Remove all options from the current selection

Specified by:
unselectAll in interface MultiSelectElement
Returns:
this multi-select instance


Copyright © 2014 Atlassian. All rights reserved.