|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.component.tab.AbstractNamedTab<DashboardTab> com.atlassian.jira.webtest.framework.impl.selenium.page.dashboard.DefaultDashboardTabImpl
public class DefaultDashboardTabImpl
Non-default implementation of DashboardTab
,
for case where the tab is default:).
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware |
---|
assertThat, client, context, timeouts |
Constructor Summary | |
---|---|
DefaultDashboardTabImpl(Dashboard dashboard,
SeleniumContext context)
|
Method Summary | ||
---|---|---|
protected Locator |
detector()
Main locator of this page object. |
|
|
gadget(Class<T> gadgetType)
Find gadget of given gadgetType. |
|
|
gadget(Class<T> gadgetType,
int gadgetId)
Find gadget of given gadgetType and with given ID. |
|
TimedCondition |
hasGadget(Class<? extends Gadget> gadgetType)
Check if dashboard has a given gadget. |
|
TimedCondition |
hasGadget(Class<? extends Gadget> gadgetType,
int gadgetId)
Check if dashboard has gadget of given type and with given gadgetId. |
|
TimedCondition |
isClosed()
A timed condition that queries, whether this component is currently closed. |
|
TimedCondition |
isOpen()
Checks if this component is open. |
|
TimedCondition |
isOpenable()
Represents a question: is this component capable of being opened in the current test context? |
|
Locator |
locator()
Locator unambiguously locating this page object. |
|
DashboardTab |
open()
Open this component and return this instance. |
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.component.tab.AbstractNamedTab |
---|
name |
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.component.tab.NamedTab |
---|
name |
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject |
---|
context, isReady |
Constructor Detail |
---|
public DefaultDashboardTabImpl(Dashboard dashboard, SeleniumContext context)
Method Detail |
---|
protected Locator detector()
AbstractLocatorBasedPageObject
detector
in class AbstractLocatorBasedPageObject
public Locator locator()
Localizable
locator
in interface Localizable
public TimedCondition isOpen()
Openable
isOpen
in interface Openable<DashboardTab>
TimedCondition
public TimedCondition isClosed()
Openable
isClosed
in interface Openable<DashboardTab>
TimedCondition
public TimedCondition isOpenable()
Openable
Represents a question: is this component capable of being opened in the current test context?
If the returned condition evaluates to true
, this component may be safely opened by means of
Openable.open()
.
NOTE: if
Openable.isOpen()
evaluates to true
, this condition will automatically evaluate to
false
, as it is not possible to open a component that is already open.
isOpenable
in interface Openable<DashboardTab>
public DashboardTab open()
Openable
Open this component and return this instance.
A pre-condition for this action is that the Openable.isClosed()
and Openable.isOpenable()
condition is met.
NOTE: this method, like most action methods in the framework, does not verify its results (as opposed
to pre-conditions), as in some cases it might be legitimate to attempt to open a component given the test context
state deliberately set up to make this attempt fail and then verify that the failure did happen. Thus, invoking
clients are responsible for validation results of this action, which may be done by calling Openable.isOpen()
.
open
in interface Openable<DashboardTab>
public TimedCondition hasGadget(Class<? extends Gadget> gadgetType)
DashboardTab
Check if dashboard has a given gadget.
NOTE: there may be more than one gadgets on a given Dashboard page and this method will not convey information
about how many gadgets are there. Use DashboardTab.hasGadget(Class, int)
to check for a gadget with particular ID.
hasGadget
in interface DashboardTab
gadgetType
- type of the gadget
DashboardTab.hasGadget(Class, int)
public TimedCondition hasGadget(Class<? extends Gadget> gadgetType, int gadgetId)
DashboardTab
Check if dashboard has gadget of given type and with given gadgetId.
hasGadget
in interface DashboardTab
gadgetType
- type of the gadgetgadgetId
- ID of the gadget
public <T extends Gadget> T gadget(Class<T> gadgetType)
DashboardTab
Find gadget of given gadgetType.
NOTE: if there are multiple gadget of gadgetType on the particular dashboard, the first found one will be returned
gadget
in interface DashboardTab
T
- type parameter of gadgetgadgetType
- gadget class
PageObject.isReady()
,
or by DashboardTab.hasGadget(Class)
.public <T extends Gadget> T gadget(Class<T> gadgetType, int gadgetId)
DashboardTab
Find gadget of given gadgetType and with given ID.
gadget
in interface DashboardTab
T
- type parameter of gadgetgadgetType
- gadget classgadgetId
- ID of the gadget
PageObject.isReady()
,
or by DashboardTab.hasGadget(Class, int)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |