com.atlassian.jira.webtest.framework.impl.selenium.page.admin.plugins
Class AbstractSeleniumPluginComponent<T extends PluginComponent<T>>

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.page.admin.plugins.AbstractSeleniumPluginComponent<T>
All Implemented Interfaces:
Collapsible<T>, Localizable, PageObject, PluginComponent<T>
Direct Known Subclasses:
SeleniumManagePluginComponent

public abstract class AbstractSeleniumPluginComponent<T extends PluginComponent<T>>
extends AbstractLocatorBasedPageObject
implements PluginComponent<T>

TODO: Document this class / interface here

Since:
v4.3

Field Summary
protected  Locator headerRowLocator
           
protected  Locator mainLocator
           
protected  String pluginKey
           
protected  String tabId
           
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
protected AbstractSeleniumPluginComponent(SeleniumContext context, String pluginKey, String tabId, Class<T> targetType)
           
 
Method Summary
 T collapse()
          Collapse this collapsible to a visible mode.
protected  SeleniumLocator detector()
          Main locator of this page object.
 T expand()
          Restore this collapsible to a visible mode.
 String getPluginKey()
           
 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.
 Locator locator()
          Locator unambiguously locating this page object.
 
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
 

Field Detail

pluginKey

protected final String pluginKey

tabId

protected final String tabId

mainLocator

protected final Locator mainLocator

headerRowLocator

protected final Locator headerRowLocator
Constructor Detail

AbstractSeleniumPluginComponent

protected AbstractSeleniumPluginComponent(SeleniumContext context,
                                          String pluginKey,
                                          String tabId,
                                          Class<T> targetType)
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

getPluginKey

public String getPluginKey()
Specified by:
getPluginKey in interface PluginComponent<T extends PluginComponent<T>>

isExpanded

public 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<T extends PluginComponent<T>>
Returns:
timed condition querying visibility of this page object

isCollapsed

public 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<T extends PluginComponent<T>>
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 T 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<T extends PluginComponent<T>>
Returns:
this collapsible instance

collapse

public T 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<T extends PluginComponent<T>>
Returns:
this collapsible instance


Copyright © 2002-2013 Atlassian. All Rights Reserved.