public class GadgetContainer extends Object
DashboardPage
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.pageobjects.elements.PageElement |
addDialogLink |
protected com.atlassian.pageobjects.elements.PageElement |
auiBlanket |
protected com.atlassian.pageobjects.elements.PageElement |
dashboard |
protected com.atlassian.pageobjects.PageBinder |
pageBinder |
Constructor and Description |
---|
GadgetContainer(int dashboardId) |
Modifier and Type | Method and Description |
---|---|
boolean |
canAddGadget() |
<G extends it.com.atlassian.gadgets.pages.Gadget> |
get(Class<G> gadgetClass,
String gadgetId)
Equivalent to
getGadget(Class, String) . |
it.com.atlassian.gadgets.pages.Gadget |
get(String gadgetId)
Equivalent to
getGadget(String) . |
<G extends it.com.atlassian.gadgets.pages.Gadget> |
getByTitle(Class<G> gadgetClass,
String gadgetTitle)
Equivalent to
getGadgetByTitle(Class, String) . |
it.com.atlassian.gadgets.pages.Gadget |
getByTitle(String gadgetTitle)
Equivalent to
getGadgetByTitle(String) }. |
it.com.atlassian.gadgets.pages.DashboardToolsMenu |
getDashboardTools() |
<G extends it.com.atlassian.gadgets.pages.Gadget> |
getGadget(Class<G> gadgetClass,
String gadgetId) |
it.com.atlassian.gadgets.pages.Gadget |
getGadget(String gadgetId) |
<G extends it.com.atlassian.gadgets.pages.Gadget> |
getGadgetByTitle(Class<G> gadgetClass,
String gadgetTitle)
Get gadget of given type by it's title as visible on the dashboard.
|
it.com.atlassian.gadgets.pages.Gadget |
getGadgetByTitle(String gadgetTitle)
Get gadget by it's title as visible on the dashboard.
|
LoginGadget |
getLoginGadget()
Login gadget is always on the Dashboard if not logged in.
|
protected com.atlassian.pageobjects.elements.PageElement |
getTabContainer() |
protected List<com.atlassian.pageobjects.elements.PageElement> |
getTabContainers() |
boolean |
hasGaddget(String gadgetId) |
boolean |
hasTabs() |
it.com.atlassian.gadgets.pages.AddGadgetDialog |
openAddGadgetDialog() |
it.com.atlassian.gadgets.pages.DashboardToolsMenu |
openDashboardTools() |
DashboardPage |
switchDashboard(String dashboardName)
Switches dashboard using the side tabs.
|
void |
waitForAuiBlanketToVanish() |
@Inject protected com.atlassian.pageobjects.PageBinder pageBinder
protected com.atlassian.pageobjects.elements.PageElement addDialogLink
protected com.atlassian.pageobjects.elements.PageElement dashboard
protected com.atlassian.pageobjects.elements.PageElement auiBlanket
protected com.atlassian.pageobjects.elements.PageElement getTabContainer()
protected List<com.atlassian.pageobjects.elements.PageElement> getTabContainers()
public boolean hasTabs()
public boolean canAddGadget()
public it.com.atlassian.gadgets.pages.AddGadgetDialog openAddGadgetDialog()
public LoginGadget getLoginGadget()
IllegalStateException
- if an user is logged inpublic boolean hasGaddget(String gadgetId)
public it.com.atlassian.gadgets.pages.Gadget getGadget(String gadgetId)
public <G extends it.com.atlassian.gadgets.pages.Gadget> G getGadget(Class<G> gadgetClass, String gadgetId)
public it.com.atlassian.gadgets.pages.Gadget get(String gadgetId)
getGadget(String)
.gadgetId
- gadget IDpublic <G extends it.com.atlassian.gadgets.pages.Gadget> G get(Class<G> gadgetClass, String gadgetId)
getGadget(Class, String)
.gadgetId
- gadget IDgadgetClass
- expected gadget typepublic it.com.atlassian.gadgets.pages.Gadget getGadgetByTitle(String gadgetTitle)
gadgetTitle
- title of the gadgetIllegalArgumentException
- if gadget with given title does not existpublic <G extends it.com.atlassian.gadgets.pages.Gadget> G getGadgetByTitle(Class<G> gadgetClass, String gadgetTitle)
gadgetClass
- expected gadget typegadgetTitle
- title of the gadgetIllegalArgumentException
- if gadget with given title does not existpublic it.com.atlassian.gadgets.pages.Gadget getByTitle(String gadgetTitle)
getGadgetByTitle(String)
}.gadgetTitle
- title of the gadgetIllegalArgumentException
- if gadget with given title does not existpublic <G extends it.com.atlassian.gadgets.pages.Gadget> G getByTitle(Class<G> gadgetClass, String gadgetTitle)
getGadgetByTitle(Class, String)
.gadgetClass
- expected gadget typegadgetTitle
- gadget titlepublic it.com.atlassian.gadgets.pages.DashboardToolsMenu getDashboardTools()
public it.com.atlassian.gadgets.pages.DashboardToolsMenu openDashboardTools()
public DashboardPage switchDashboard(String dashboardName)
hasTabs()
returns true
.dashboardName
- name of the dashboard to switch toIllegalStateException
- if there is no tabs (e.g. user not logged in or there is only one
dashboard configured for the user), or there is no dashboard with given namepublic void waitForAuiBlanketToVanish()
Copyright © 2002-2017 Atlassian. All Rights Reserved.