Class UnstableJobsPortlet
- 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.UnstableJobsPortlet
-
- All Implemented Interfaces:
CapybaraPortingLayer
,Control.Owner
,PageArea
public class UnstableJobsPortlet extends AbstractDashboardViewPortlet
The Unstable builds 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 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 UnstableJobsPortlet(DashboardView parent, String path)
Constructs a new unstable jobs portlet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.WebElement
getTable()
Gets the table of unstable jobs asWebElement
.boolean
hasJob(String jobName)
Returns true if this Portlet contains a job with the given name.void
openJob(String jobName)
Opens the job with the given name, if it exists in the Portlet.void
setShowOnlyFailedJobs(boolean showOnlyFailedJobs)
Sets the "Recurse within folders"-parameter for this Portlet.-
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
-
-
-
-
Constructor Detail
-
UnstableJobsPortlet
public UnstableJobsPortlet(DashboardView parent, String path)
Constructs a new unstable jobs portlet.- Parameters:
parent
- Dashboard view this portlet is scoped to.path
- Absolute path to the area.
-
-
Method Detail
-
setShowOnlyFailedJobs
public void setShowOnlyFailedJobs(boolean showOnlyFailedJobs)
Sets the "Recurse within folders"-parameter for this Portlet.- Parameters:
showOnlyFailedJobs
- New value to set.
-
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
-
hasJob
public boolean hasJob(String jobName)
Returns true if this Portlet contains a job with the given name.- Parameters:
jobName
- Name of the job to look for.- Returns:
- True, if this Portlet contains a job with the given name.
-
openJob
public void openJob(String jobName)
Opens the job with the given name, if it exists in the Portlet.- Parameters:
jobName
- Name of the job to open.
-
-