|
||||||||||
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.dialog.AbstractSeleniumDialog<T> com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumAuiDialog<D> com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumAuiPageDialog<AddGadgetDialog,Dashboard> com.atlassian.jira.webtest.framework.impl.selenium.dialog.gadget.AddGadgetDialogImpl
public class AddGadgetDialogImpl
Default implementation of AddGadgetDialog
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.webtest.framework.dialog.AddGadgetDialog |
---|
AddGadgetDialog.CloseMode |
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware |
---|
assertThat, client, context, timeouts |
Constructor Summary | |
---|---|
AddGadgetDialogImpl(Dashboard page,
SeleniumContext ctx)
|
Method Summary | ||
---|---|---|
|
addGadget(Class<T> gadgetType)
Add gadget of given type to the dashboard. |
|
|
addGadget(Class<T> gadgetType,
String sourceUrl)
Add gadget of given type and sourceUrl to the dashboard. |
|
TimedCondition |
canAddGadget(Class<? extends Gadget> gadgetType)
Check if given gadget type can be added. |
|
TimedCondition |
canAddGadget(Class<? extends Gadget> gadgetType,
String sourceUrl)
Check if given gadget type can be added. |
|
AddGadgetDialog.CloseMode |
close()
Close the dialog. |
|
protected String |
getOpenDialogClass()
|
|
Locator |
locator()
Locator unambiguously locating this page object. |
|
AddGadgetDialog |
open()
Open this component and return this instance. |
|
protected SeleniumLocator |
openDialogLocator()
Unique locator of an open dialog. |
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumAuiPageDialog |
---|
isOpenableInContext, page |
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumAuiDialog |
---|
cancelLinkLocator |
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumDialog |
---|
detector, isClosed, isOpen, isOpenable |
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.dialog.PageDialog |
---|
page |
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Openable |
---|
isClosed, isOpen, isOpenable |
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject |
---|
context, isReady |
Constructor Detail |
---|
public AddGadgetDialogImpl(Dashboard page, SeleniumContext ctx)
Method Detail |
---|
protected String getOpenDialogClass()
getOpenDialogClass
in class AbstractSeleniumAuiDialog<AddGadgetDialog>
public Locator locator()
Localizable
locator
in interface Localizable
locator
in class AbstractSeleniumDialog<AddGadgetDialog>
protected SeleniumLocator openDialogLocator()
AbstractSeleniumDialog
openDialogLocator
in class AbstractSeleniumAuiDialog<AddGadgetDialog>
public <T extends Gadget> AddGadgetDialog addGadget(Class<T> gadgetType)
AddGadgetDialog
Add gadget of given type to the dashboard. This will also close the dialog.
NOTE: there may be more then one gadgets of given type to add. Use AddGadgetDialog.addGadget(Class, String)
to add a
gadget from particular source.
addGadget
in interface AddGadgetDialog
T
- type parametergadgetType
- class of gadget to add
public <T extends Gadget> AddGadgetDialog addGadget(Class<T> gadgetType, String sourceUrl)
AddGadgetDialog
Add gadget of given type and sourceUrl to the dashboard. This will also close the dialog.
addGadget
in interface AddGadgetDialog
T
- type parametergadgetType
- class of gadget to addsourceUrl
- URL of the gadget spec source
public TimedCondition canAddGadget(Class<? extends Gadget> gadgetType)
AddGadgetDialog
canAddGadget
in interface AddGadgetDialog
gadgetType
- type of the gadget to add.
public TimedCondition canAddGadget(Class<? extends Gadget> gadgetType, String sourceUrl)
AddGadgetDialog
Check if given gadget type can be added. This means that the dialog is open and the 'Add gadget' button is available (i.e. not already waiting for adding a gadget).
Use this method if there are more than one gadgets of given type, coming from different applications.
canAddGadget
in interface AddGadgetDialog
gadgetType
- type of the gadget to add.sourceUrl
- URL of the gadget source
public AddGadgetDialog 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<AddGadgetDialog>
public AddGadgetDialog.CloseMode close()
AddGadgetDialog
close
in interface AddGadgetDialog
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |