com.atlassian.jira.webtest.framework.impl.selenium.page.admin.plugins
Class AbstractSeleniumPluginComponent<T extends PluginComponent<T>>
java.lang.Object
com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pluginKey
protected final String pluginKey
tabId
protected final String tabId
mainLocator
protected final Locator mainLocator
headerRowLocator
protected final Locator headerRowLocator
AbstractSeleniumPluginComponent
protected AbstractSeleniumPluginComponent(SeleniumContext context,
String pluginKey,
String tabId,
Class<T> targetType)
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.