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

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.SeleniumSelect
All Implemented Interfaces:
Select, Localizable, PageObject

public class SeleniumSelect
extends AbstractLocatorBasedPageObject
implements Select

Selenium implementation of the Select 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
SeleniumSelect(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.
 Select select(Option option)
          Select given option.
 Select selectDefault()
          Select default '-1' option of this select.
 Option selected()
          Selected option of this select.
 
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

SeleniumSelect

public SeleniumSelect(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: Select
All options

Specified by:
all in interface Select
Returns:
all options of this select

selected

public Option selected()
Description copied from interface: Select
Selected option of this select.

Specified by:
selected in interface Select
Returns:
selected option of this select

select

public Select select(Option option)
Description copied from interface: Select
Select given option.

Specified by:
select in interface Select
Parameters:
option - option to select
Returns:
this select instance

selectDefault

public Select selectDefault()
Description copied from interface: Select
Select default '-1' option of this select.

Specified by:
selectDefault in interface Select
Returns:
this select instance


Copyright © 2002-2013 Atlassian. All Rights Reserved.