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
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
Modifier and TypeFieldDescriptionfinal BreadCrumbs
final BuildExecutorStatus
final ColumnsArea
final DashboardPortlets
final JobFiltersArea
final MainArea
final MainPanel
final ProjectStatusStdJobList
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
ConstructorDescriptionDashboardView
(com.google.inject.Injector injector, URL url) Constructs a newDashboardView
. -
Method Summary
Modifier and TypeMethodDescription<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
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 Details
-
jobFilters
-
mainArea
-
columnsArea
-
dashboardPortlets
-
breadCrumbs
-
buildExecutorStatus
-
projectStatus
-
mainPanel
-
-
Constructor Details
-
DashboardView
Constructs a newDashboardView
.- Parameters:
injector
- Injector to use.url
- URL of view.
-
-
Method Details
-
addTopPortlet
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
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
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
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
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
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
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
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
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
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
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
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.
-