com.atlassian.jira.webtest.framework.impl.selenium.page.issuenavigator
Class AbstractSeleniumSimpleFilterSection<S extends SimpleSearchFilterSection<S>>

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<SimpleSearchFilter>
                  extended by com.atlassian.jira.webtest.framework.impl.selenium.page.issuenavigator.AbstractSeleniumSimpleFilterSection<S>
Type Parameters:
S - target section type
All Implemented Interfaces:
Collapsible<S>, Component<SimpleSearchFilter>, PageObject, SimpleSearchFilterSection<S>
Direct Known Subclasses:
SeleniumCustomFieldsSection, SeleniumDatesAndTimesSection, SeleniumIssueAttributesSection, SeleniumWorkRatioSection

public class AbstractSeleniumSimpleFilterSection<S extends SimpleSearchFilterSection<S>>
extends AbstractSeleniumComponent<SimpleSearchFilter>
implements SimpleSearchFilterSection<S>

Selenium implementation of IssueAttributesSection.

Since:
v4.3

Field Summary
protected  SimpleSearchSection type
           
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
protected AbstractSeleniumSimpleFilterSection(SimpleSearchFilter parent, SeleniumContext context, SimpleSearchSection type, Class<S> targetType)
           
 
Method Summary
protected  S asTargetType()
           
 S collapse()
          Collapse this collapsible to a visible mode.
protected  SeleniumLocator detector()
          Main locator of this page object.
 S 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.
 SimpleSearchSection type()
          Type of the section.
 
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.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.component.Component
parent
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 

Field Detail

type

protected final SimpleSearchSection type
Constructor Detail

AbstractSeleniumSimpleFilterSection

protected AbstractSeleniumSimpleFilterSection(SimpleSearchFilter parent,
                                              SeleniumContext context,
                                              SimpleSearchSection type,
                                              Class<S> targetType)
Method Detail

detector

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

type

public final SimpleSearchSection type()
Description copied from interface: SimpleSearchFilterSection
Type of the section.

Specified by:
type in interface SimpleSearchFilterSection<S extends SimpleSearchFilterSection<S>>
Returns:
this section type

isExpanded

public final TimedCondition isExpanded()
Description copied from interface: Collapsible
Queries whether this page object is visible in the current test context.

Specified by:
isExpanded in interface Collapsible<S extends SimpleSearchFilterSection<S>>
Returns:
timed condition querying visibility of this page object

isCollapsed

public final TimedCondition isCollapsed()
Description copied from interface: Collapsible
Queries whether this page object is collapsed (hidden) in the current test context. Equivalent to Conditions.not(isVisible()).

Specified by:
isCollapsed in interface Collapsible<S extends SimpleSearchFilterSection<S>>
Returns:
timed condition verifying, whether this page object is currently collapsed
See Also:
Collapsible.isExpanded(), Conditions.not(com.atlassian.jira.webtest.framework.core.condition.TimedCondition)

expand

public final S expand()
Description copied from interface: Collapsible
Restore this collapsible to a visible mode. After this call, subsequent calls to Collapsible.isExpanded() condition should eventually return true.

Specified by:
expand in interface Collapsible<S extends SimpleSearchFilterSection<S>>
Returns:
this collapsible instance

collapse

public final S collapse()
Description copied from interface: Collapsible
Collapse this collapsible to a visible mode. After this call, subsequent calls to Collapsible.isCollapsed() condition should eventually return true.

Specified by:
collapse in interface Collapsible<S extends SimpleSearchFilterSection<S>>
Returns:
this collapsible instance

asTargetType

protected final S asTargetType()


Copyright © 2002-2012 Atlassian. All Rights Reserved.