Package org.jenkinsci.test.acceptance.po
Class View
-
- All Implemented Interfaces:
CapybaraPortingLayer
- Direct Known Subclasses:
DashboardView
,ListView
,NestedView
public abstract class View extends ContainerPageObject
Page object for view, which is a collection of jobs rendered in the UI.Use
Describable
annotation to register an implementation.- Author:
- Kohsuke Kawaguchi
-
-
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 Control
description
Control
includeRegex
JobsMixIn
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(String name)
Clicks a build button for a job of the specified name.void
checkRecurseIntoFolders()
static Matcher<View>
containsColumnHeader(String headerName)
static Matcher<View>
containsColumnHeaderTooltip(String tooltip)
static Matcher<View>
containsImage(String imageName)
static Matcher<View>
containsJob(Job needle)
static Matcher<View>
containsLinkWithTooltip(String text)
static Matcher<View>
containsSvgWithText(String text)
void
delete()
Deletes the view.BuildHistory
getBuildHistory()
String
getFormName()
String
getSubmitButtonText()
static Matcher<View>
hasDescription(String description)
void
matchAllJobs()
Configures the view to include all jobs.void
matchJobs(String regex)
void
save()
void
setDescription(String description)
Sets the description of the currentView
.-
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
-
-
-
-
Constructor Detail
-
View
public View(com.google.inject.Injector injector, URL url)
-
-
Method Detail
-
build
public void build(String name)
Clicks a build button for a job of the specified name.
-
matchAllJobs
public void matchAllJobs()
Configures the view to include all jobs.
-
matchJobs
public void matchJobs(String regex)
-
delete
public void delete()
Deletes the view.
-
save
public void save()
- Overrides:
save
in classConfigurablePageObject
-
getBuildHistory
public BuildHistory getBuildHistory()
-
checkRecurseIntoFolders
public void checkRecurseIntoFolders()
-
setDescription
public void setDescription(String description)
Sets the description of the currentView
.- Parameters:
description
- The description of the view.
-
getFormName
public String getFormName()
- Overrides:
getFormName
in classConfigurablePageObject
-
getSubmitButtonText
public String getSubmitButtonText()
- Overrides:
getSubmitButtonText
in classConfigurablePageObject
-
containsColumnHeaderTooltip
public static Matcher<View> containsColumnHeaderTooltip(String tooltip)
-
-