com.atlassian.jira.webtest.framework.core
Interface Collapsible<T extends PageObject>

Type Parameters:
T - target type of this collapsible
All Superinterfaces:
PageObject
All Known Subinterfaces:
CustomFieldsSection, DatesAndTimesSection, IssueAttributesSection, ManagePluginComponent, PluginComponent<T>, SimpleSearchFilter, SimpleSearchFilterSection<S>, WorkRatioSection
All Known Implementing Classes:
AbstractSeleniumPluginComponent, AbstractSeleniumSimpleFilterSection, SeleniumCustomFieldsSection, SeleniumDatesAndTimesSection, SeleniumIssueAttributesSection, SeleniumManagePluginComponent, SeleniumSimpleSearchFilter, SeleniumWorkRatioSection

public interface Collapsible<T extends PageObject>
extends PageObject

An element of the page that may be hidden (collapsed) and made visible by user action (e.g. a click on a particular button)

Since:
v4.3

Method Summary
 T collapse()
          Collapse this collapsible to a visible mode.
 T expand()
          Restore this collapsible to a visible mode.
 TimedCondition isCollapsed()
          Queries whether this page object is collapsed (hidden) in the current test context.
 TimedCondition isExpanded()
          Queries whether this page object is visible in the current test context.
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 

Method Detail

isExpanded

TimedCondition isExpanded()
Queries whether this page object is visible in the current test context.

Returns:
timed condition querying visibility of this page object

isCollapsed

TimedCondition isCollapsed()
Queries whether this page object is collapsed (hidden) in the current test context. Equivalent to Conditions.not(isVisible()).

Returns:
timed condition verifying, whether this page object is currently collapsed
See Also:
isExpanded(), Conditions.not(com.atlassian.jira.webtest.framework.core.condition.TimedCondition)

expand

T expand()
Restore this collapsible to a visible mode. After this call, subsequent calls to isExpanded() condition should eventually return true.

Returns:
this collapsible instance

collapse

T collapse()
Collapse this collapsible to a visible mode. After this call, subsequent calls to isCollapsed() condition should eventually return true.

Returns:
this collapsible instance


Copyright © 2002-2013 Atlassian. All Rights Reserved.