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

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

public class ReloadingSelect
extends AbstractSeleniumPageObject
implements Select

An implementation of HTML select that triggers page reload on each selection change.

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
ReloadingSelect(SeleniumLocator mainLocator, SeleniumContext context)
           
 
Method Summary
 List<Option> all()
          All options
 TimedCondition isReady()
          Returns condition representing a query about the state of this page object: if this evaluates to true, this page object is present within the current test context and may be queried/manipulated by the test driver.
 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.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
 

Constructor Detail

ReloadingSelect

public ReloadingSelect(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

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

isReady

public TimedCondition isReady()
Description copied from interface: PageObject
Returns condition representing a query about the state of this page object: if this evaluates to true, this page object is present within the current test context and may be queried/manipulated by the test driver.

Specified by:
isReady in interface PageObject
Returns:
condition representing availability of this page object in the current text context


Copyright © 2002-2013 Atlassian. All Rights Reserved.