Class JobsGridPortlet
- java.lang.Object
-
- org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
-
- org.jenkinsci.test.acceptance.po.PageAreaImpl
-
- org.jenkinsci.test.acceptance.plugins.dashboard_view.AbstractDashboardViewPortlet
-
- org.jenkinsci.test.acceptance.plugins.dashboard_view.JobsGridPortlet
-
- All Implemented Interfaces:
CapybaraPortingLayer
,Control.Owner
,PageArea
public class JobsGridPortlet extends AbstractDashboardViewPortlet
The basic jobs grid portlet shipped with the dashboard view plugin.- Author:
- Maximilian Zollbrecht
-
-
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 static String
PORTLET_NAME
Default name of this Portlet.-
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 JobsGridPortlet(DashboardView parent, String path)
Constructs a new jobs grid portlet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Job
getJob(int row, int column)
Opens and returns the job at the given position in the grid.org.openqa.selenium.WebElement
getTable()
Gets the table of unstable jobs asWebElement
.void
setFillColumnFirst(boolean fillColumnFirst)
void
setNumberOfColumns(int numberOfColumns)
-
Methods inherited from class org.jenkinsci.test.acceptance.plugins.dashboard_view.AbstractDashboardViewPortlet
delete, getName, setName
-
Methods inherited from class org.jenkinsci.test.acceptance.po.PageAreaImpl
control, control, createPageArea, getPage, getPath, getPath, getPath, path, self
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
all, blur, check, check, check, choose, clickButton, clickLink, confirmAlert, executeScript, fillIn, find, findIfNotVisible, getElement, getPageSource, last, lastIfNotVisible, runThenConfirmAlert, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
-
-
-
Field Detail
-
PORTLET_NAME
public static final String PORTLET_NAME
Default name of this Portlet.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JobsGridPortlet
public JobsGridPortlet(DashboardView parent, String path)
Constructs a new jobs grid portlet.- Parameters:
parent
- Parent dashboard view this portlet is scoped to.path
- Absolute path to the area.
-
-
Method Detail
-
setNumberOfColumns
public void setNumberOfColumns(int numberOfColumns)
-
setFillColumnFirst
public void setFillColumnFirst(boolean fillColumnFirst)
-
getTable
public org.openqa.selenium.WebElement getTable() throws org.openqa.selenium.NoSuchElementException
Gets the table of unstable jobs asWebElement
.- Returns:
- The table-
WebElement
containing the unstable jobs. - Throws:
org.openqa.selenium.NoSuchElementException
- if the table is not found
-
getJob
@CheckForNull public Job getJob(int row, int column) throws org.openqa.selenium.NoSuchElementException
Opens and returns the job at the given position in the grid.- Parameters:
column
- the column of the jobrow
- the row of the job- Returns:
- The job at the given position. Null if the position exists, but is empty.
- Throws:
org.openqa.selenium.NoSuchElementException
- if column or row are below 0 or higher than the column- or row-number of the grid.
-
-