|
||||||||||
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.core.component.AbstractSeleniumComponent<Dashboard> com.atlassian.jira.webtest.framework.impl.selenium.gadget.AbstractGadget
public abstract class AbstractGadget
Abstract implementation of Gadget
.
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware |
---|
assertThat, client, context, timeouts |
Constructor Summary | |
---|---|
protected |
AbstractGadget(int id,
String name,
Dashboard dashboard,
SeleniumContext context)
|
protected |
AbstractGadget(String name,
Dashboard dashboard,
SeleniumContext context)
|
Method Summary | ||
---|---|---|
protected Locator |
detector()
Main locator of this page object. |
|
Locator |
frameLocator()
Each gadget on Dashboard is embedded withing a frame. |
|
int |
id()
Unique ID of the gadget. |
|
protected TimedCondition |
inGadget(TimedCondition condition)
|
|
protected
|
inGadget(TimedQuery<T> query)
|
|
TimedCondition |
isReady()
Returns condition representing a query about the state of this page object: if this evaluates to true , this page object is present within the current test context and may be
queried/manipulated by the test driver. |
|
Locator |
locator()
Locator unambiguously locating this page object. |
|
String |
name()
Return name of the gadget as visible by user on the Dashboard. |
|
protected int |
retrieveIdForSingleGadget()
|
|
protected Locator |
titleLocator()
|
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.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 |
Constructor Detail |
---|
protected AbstractGadget(int id, String name, Dashboard dashboard, SeleniumContext context)
protected AbstractGadget(String name, Dashboard dashboard, SeleniumContext context)
Method Detail |
---|
protected Locator detector()
AbstractLocatorBasedPageObject
detector
in class AbstractLocatorBasedPageObject
public TimedCondition isReady()
AbstractLocatorBasedPageObject
true
, this page object is present within the current test context and may be
queried/manipulated by the test driver.
Generic implementation in terms of the underlying locator of this page object. Subclasses may extend it to provide additional/alternative conditions of readiness.
isReady
in interface PageObject
isReady
in class AbstractLocatorBasedPageObject
PageObject.isReady()
,
Conditions
public String name()
Gadget
name
in interface Gadget
public Locator locator()
Localizable
locator
in interface Localizable
public int id()
Gadget
id
in interface Gadget
public Locator frameLocator()
Gadget
frameLocator
in interface Gadget
protected final Locator titleLocator()
protected final int retrieveIdForSingleGadget()
protected final TimedCondition inGadget(TimedCondition condition)
protected final <T> TimedQuery<T> inGadget(TimedQuery<T> query)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |