com.atlassian.jira.webtest.framework.impl.selenium.page.dashboard
Class DashboardSectionImpl

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.AbstractSeleniumComponent<AjsDropdown<Dashboard>>
                  extended by com.atlassian.jira.webtest.framework.impl.selenium.page.dashboard.DashboardSectionImpl
All Implemented Interfaces:
AjsDropdown.Section<Dashboard>, Component<AjsDropdown<Dashboard>>, Localizable, PageObject

public class DashboardSectionImpl
extends AbstractSeleniumComponent<AjsDropdown<Dashboard>>
implements AjsDropdown.Section<Dashboard>

Implementation of AjsDropdown.Section.

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
protected DashboardSectionImpl(DashboardToolsMenu parent, SeleniumContext context)
           
 
Method Summary
protected  Locator detector()
          Main locator of this page object.
 boolean hasHeader()
          Check whether this section has header.
 String header()
          Header of the section
 String id()
          Unique ID of the section
 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.
 TimedQuery<List<AjsDropdown.Item<Dashboard>>> items()
          All items of this section.
 Locator locator()
          Locator unambiguously locating this page object.
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.component.AbstractSeleniumComponent
parent
 
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.component.Component
parent
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context
 

Constructor Detail

DashboardSectionImpl

protected DashboardSectionImpl(DashboardToolsMenu parent,
                               SeleniumContext context)
Method Detail

id

public String id()
Description copied from interface: AjsDropdown.Section
Unique ID of the section

Specified by:
id in interface AjsDropdown.Section<Dashboard>
Returns:
ID of the section

header

public String header()
Description copied from interface: AjsDropdown.Section
Header of the section

Specified by:
header in interface AjsDropdown.Section<Dashboard>
Returns:
header of the section

hasHeader

public boolean hasHeader()
Description copied from interface: AjsDropdown.Section
Check whether this section has header.

Specified by:
hasHeader in interface AjsDropdown.Section<Dashboard>
Returns:
true, if this section has header, false otherwise

items

public TimedQuery<List<AjsDropdown.Item<Dashboard>>> items()
Description copied from interface: AjsDropdown.Section
All items of this section.

Specified by:
items in interface AjsDropdown.Section<Dashboard>
Returns:
all items of this section

locator

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

Specified by:
locator in interface Localizable
Returns:
locator

isReady

public TimedCondition isReady()
Description copied from class: AbstractLocatorBasedPageObject
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.

Generic implementation in terms of the underlying locator of this page object. Subclasses may extend it to provide additional/alternative conditions of readiness.

Specified by:
isReady in interface PageObject
Overrides:
isReady in class AbstractLocatorBasedPageObject
Returns:
condition representing availability of this page object in the current text context
See Also:
PageObject.isReady(), Conditions

detector

protected Locator 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


Copyright © 2002-2012 Atlassian. All Rights Reserved.