Class DashboardView
- java.lang.Object
-
- org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
-
- org.jenkinsci.test.acceptance.po.PageObject
-
- org.jenkinsci.test.acceptance.po.ConfigurablePageObject
-
- org.jenkinsci.test.acceptance.po.ContainerPageObject
-
- org.jenkinsci.test.acceptance.po.View
-
- org.jenkinsci.test.acceptance.plugins.dashboard_view.DashboardView
-
- All Implemented Interfaces:
CapybaraPortingLayer
public class DashboardView extends View
PageObject of DashboardView Configuration Page.- Author:
- Kohsuke Kawaguchi, Rene Zarwel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
CapybaraPortingLayerImpl.Finder<R>, CapybaraPortingLayerImpl.Resolver
-
-
Field Summary
Fields Modifier and Type Field Description BreadCrumbs
breadCrumbs
BuildExecutorStatus
buildExecutorStatus
ColumnsArea
columnsArea
DashboardPortlets
dashboardPortlets
JobFiltersArea
jobFilters
MainArea
mainArea
MainPanel
mainPanel
ProjectStatusStdJobList
projectStatus
-
Fields inherited from class org.jenkinsci.test.acceptance.po.View
description, includeRegex, jobs
-
Fields inherited from class org.jenkinsci.test.acceptance.po.PageObject
jsonParser, url
-
Fields inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
driver, injector, LABEL_TO_INPUT_XPATH, time
-
Fields inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
by
-
-
Constructor Summary
Constructors Constructor Description DashboardView(com.google.inject.Injector injector, URL url)
Constructs a newDashboardView
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends AbstractDashboardViewPortlet>
TaddBottomPortlet(Class<T> portletClass)
Adds a new bottom portlet.<T extends AbstractDashboardViewPortlet>
TaddLeftPortlet(Class<T> portletClass)
Adds a new left portlet.<T extends AbstractDashboardViewPortlet>
TaddRightPortlet(Class<T> portletClass)
Adds a new right portlet.<T extends AbstractDashboardViewPortlet>
TaddTopPortlet(Class<T> portletClass)
Adds a new top portlet.<T extends AbstractDashboardViewPortlet>
TgetBottomPortlet(Class<T> portletClass)
Gets a portlet from the bottom of a specific class.<T extends AbstractDashboardViewPortlet>
TgetLeftPortlet(Class<T> portletClass)
Gets a portlet from the bottom of a specific class.org.openqa.selenium.WebElement
getPanel()
Gets the main panel of this dashboard containing all portlets.org.openqa.selenium.WebElement
getPortletInBottomTable(String name)
Gets the web element of a portlet in the bottom area of this dashboard view.org.openqa.selenium.WebElement
getPortletInLeftTable(String name)
Gets the web element of a portlet in the left area of this dashboard view.org.openqa.selenium.WebElement
getPortletInRightTable(String name)
Gets the web element of a portlet in the top area of this dashboard view.org.openqa.selenium.WebElement
getPortletInTopTable(String name)
Gets the web element of a portlet in the top area of this dashboard view.<T extends AbstractDashboardViewPortlet>
TgetRightPortlet(Class<T> portletClass)
Gets a portlet from the bottom of a specific class.<T extends AbstractDashboardViewPortlet>
TgetTopPortlet(Class<T> portletClass)
Gets a portlet from the bottom of a specific class.-
Methods inherited from class org.jenkinsci.test.acceptance.po.View
build, checkRecurseIntoFolders, containsColumnHeader, containsColumnHeaderTooltip, containsImage, containsJob, containsLinkWithTooltip, containsSvgWithText, delete, getBuildHistory, getFormName, getSubmitButtonText, hasDescription, matchAllJobs, matchJobs, save, setDescription
-
Methods inherited from class org.jenkinsci.test.acceptance.po.ContainerPageObject
action, action, equals, getConfigUrl, getJson, getJson, getJsonApiUrl, getNavigationLinks, hashCode
-
Methods inherited from class org.jenkinsci.test.acceptance.po.ConfigurablePageObject
apply, configure, configure, configure, configure, ensureConfigPage
-
Methods inherited from class org.jenkinsci.test.acceptance.po.PageObject
control, control, createPageArea, createRandomName, getContext, getJenkins, open, toString, url, url, visit
-
Methods inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
all, blur, check, check, check, choose, clickButton, clickLink, confirmAlert, elasticSleep, executeScript, fillIn, find, findCaption, findCaption, findIfNotVisible, getCurrentUrl, getCurrentUrlWithFragment, getElement, getPageContent, getPageSource, getPageSource, getPath, handleAlert, isHiddenOrStale, isStale, last, lastIfNotVisible, newInstance, resource, runThenConfirmAlert, runThenConfirmAlert, runThenHandleAlert, runThenHandleAlert, runThenHandleDialog, sleep, visit, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
-
-
-
Field Detail
-
jobFilters
public final JobFiltersArea jobFilters
-
mainArea
public final MainArea mainArea
-
columnsArea
public final ColumnsArea columnsArea
-
dashboardPortlets
public final DashboardPortlets dashboardPortlets
-
breadCrumbs
public final BreadCrumbs breadCrumbs
-
buildExecutorStatus
public final BuildExecutorStatus buildExecutorStatus
-
projectStatus
public final ProjectStatusStdJobList projectStatus
-
mainPanel
public final MainPanel mainPanel
-
-
Constructor Detail
-
DashboardView
public DashboardView(com.google.inject.Injector injector, URL url)
Constructs a newDashboardView
.- Parameters:
injector
- Injector to use.url
- URL of view.
-
-
Method Detail
-
addTopPortlet
public <T extends AbstractDashboardViewPortlet> T addTopPortlet(Class<T> portletClass)
Adds a new top portlet.- Type Parameters:
T
- The type constraint for portlets.- Parameters:
portletClass
- The class of the portlet.- Returns:
- The new portlet.
-
addLeftPortlet
public <T extends AbstractDashboardViewPortlet> T addLeftPortlet(Class<T> portletClass)
Adds a new left portlet.- Type Parameters:
T
- The type constraint for portlets.- Parameters:
portletClass
- The class of the portlet.- Returns:
- The new portlet.
-
addRightPortlet
public <T extends AbstractDashboardViewPortlet> T addRightPortlet(Class<T> portletClass)
Adds a new right portlet.- Type Parameters:
T
- The type constraint for portlets.- Parameters:
portletClass
- The class of the portlet.- Returns:
- The new portlet.
-
addBottomPortlet
public <T extends AbstractDashboardViewPortlet> T addBottomPortlet(Class<T> portletClass)
Adds a new bottom portlet.- Type Parameters:
T
- The type constraint for portlets.- Parameters:
portletClass
- The class of the portlet.- Returns:
- The new portlet.
-
getTopPortlet
public <T extends AbstractDashboardViewPortlet> T getTopPortlet(Class<T> portletClass)
Gets a portlet from the bottom of a specific class.- Type Parameters:
T
- A Portlet of typeAbstractDashboardViewPortlet
.- Parameters:
portletClass
- Class of portlet to get.- Returns:
- the bottom portlet to the corresponding type
-
getLeftPortlet
public <T extends AbstractDashboardViewPortlet> T getLeftPortlet(Class<T> portletClass)
Gets a portlet from the bottom of a specific class.- Type Parameters:
T
- A Portlet of typeAbstractDashboardViewPortlet
.- Parameters:
portletClass
- Class of portlet to get.- Returns:
- the bottom portlet to the corresponding type
-
getRightPortlet
public <T extends AbstractDashboardViewPortlet> T getRightPortlet(Class<T> portletClass)
Gets a portlet from the bottom of a specific class.- Type Parameters:
T
- A Portlet of typeAbstractDashboardViewPortlet
.- Parameters:
portletClass
- Class of portlet to get.- Returns:
- the bottom portlet to the corresponding type
-
getBottomPortlet
public <T extends AbstractDashboardViewPortlet> T getBottomPortlet(Class<T> portletClass)
Gets a portlet from the bottom of a specific class.- Type Parameters:
T
- A Portlet of typeAbstractDashboardViewPortlet
.- Parameters:
portletClass
- Class of portlet to get.- Returns:
- the bottom portlet to the corresponding type
-
getPanel
public org.openqa.selenium.WebElement getPanel()
Gets the main panel of this dashboard containing all portlets.- Returns:
- main panel of this dashboard.
-
getPortletInTopTable
@CheckForNull public org.openqa.selenium.WebElement getPortletInTopTable(String name)
Gets the web element of a portlet in the top area of this dashboard view.- Parameters:
name
- name of portlet.- Returns:
- web element of the portlet or null if not available.
-
getPortletInLeftTable
@CheckForNull public org.openqa.selenium.WebElement getPortletInLeftTable(String name)
Gets the web element of a portlet in the left area of this dashboard view. If there are no portlets in the left area but in the right area, this method searches in the right area.- Parameters:
name
- name of portlet.- Returns:
- web element of the portlet or null if not available.
-
getPortletInRightTable
@CheckForNull public org.openqa.selenium.WebElement getPortletInRightTable(String name)
Gets the web element of a portlet in the top area of this dashboard view. If there are no portlets in the right area but in the left area, this method searches in the left area.- Parameters:
name
- name of portlet.- Returns:
- web element of the portlet or null if not available.
-
getPortletInBottomTable
@CheckForNull public org.openqa.selenium.WebElement getPortletInBottomTable(String name)
Gets the web element of a portlet in the bottom area of this dashboard view.- Parameters:
name
- name of portlet.- Returns:
- web element of the portlet or null if not available.
-
-