com.atlassian.jira.webtest.framework.impl.selenium.core.component
Class SeleniumMultiSelect

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
      extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
          extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
              extended by com.atlassian.jira.webtest.framework.impl.selenium.core.component.SeleniumMultiSelect
All Implemented Interfaces:
MultiSelect, Localizable, PageObject

public class SeleniumMultiSelect
extends AbstractLocatorBasedPageObject
implements MultiSelect

Selenium implementation of MultiSelect component.

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
SeleniumMultiSelect(SeleniumLocator mainLocator, SeleniumContext context)
           
 
Method Summary
 List<Option> all()
          All options
protected  SeleniumLocator detector()
          Main locator of this page object.
 Locator locator()
          Locator unambiguously locating this page object.
 MultiSelect select(Option... options)
          Add given options to the current selection.
 MultiSelect selectAll()
          Add all options to the current selection.
 List<Option> selected()
          Selected options.
 MultiSelect unselect(Option... options)
          Remove given options from the current selection
 MultiSelect unselectAll()
          Remove all options from the current selection
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
isReady
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
body, conditions, css, forClass, id, jQuery, locatorFor, name, queries, waitFor, xpath
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 

Constructor Detail

SeleniumMultiSelect

public SeleniumMultiSelect(SeleniumLocator mainLocator,
                           SeleniumContext context)
Method Detail

locator

public Locator locator()
Description copied from interface: Localizable
Locator unambiguously locating this page object.

Specified by:
locator in interface Localizable
Returns:
locator

detector

protected SeleniumLocator detector()
Description copied from class: AbstractLocatorBasedPageObject
Main locator of this page object. Its presence means that this object is ready to be manipulated in the test.

Specified by:
detector in class AbstractLocatorBasedPageObject
Returns:
main locator of this page object

all

public List<Option> all()
Description copied from interface: MultiSelect
All options

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

selected

public List<Option> selected()
Description copied from interface: MultiSelect
Selected options.

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

select

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

Specified by:
select in interface MultiSelect
Parameters:
options - options to add
Returns:
this multi-select instance

unselect

public MultiSelect unselect(Option... options)
Description copied from interface: MultiSelect
Remove given options from the current selection

Specified by:
unselect in interface MultiSelect
Parameters:
options - options to remove
Returns:
this multi-select instance

selectAll

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

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

unselectAll

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

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


Copyright © 2002-2013 Atlassian. All Rights Reserved.