Package org.jenkinsci.test.acceptance.po
Class View
- All Implemented Interfaces:
CapybaraPortingLayer
- Direct Known Subclasses:
DashboardView
,ListView
,NestedView
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 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clicks a build button for a job of the specified name.void
containsColumnHeader
(String headerName) containsColumnHeaderTooltip
(String tooltip) containsImage
(String imageName) containsJob
(Job needle) containsSvgWithText
(String text) void
delete()
Deletes the view.hasDescription
(String description) void
Configures the view to include all jobs.void
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
-
Field Details
-
includeRegex
-
description
-
jobs
-
-
Constructor Details
-
View
-
-
Method Details
-
build
Clicks a build button for a job of the specified name. -
matchAllJobs
public void matchAllJobs()Configures the view to include all jobs. -
matchJobs
-
delete
public void delete()Deletes the view. -
save
public void save()- Overrides:
save
in classConfigurablePageObject
-
getBuildHistory
-
containsJob
-
checkRecurseIntoFolders
public void checkRecurseIntoFolders() -
setDescription
Sets the description of the currentView
.- Parameters:
description
- The description of the view.
-
getFormName
- Overrides:
getFormName
in classConfigurablePageObject
-
getSubmitButtonText
- Overrides:
getSubmitButtonText
in classConfigurablePageObject
-
hasDescription
-
containsColumnHeaderTooltip
-
containsColumnHeader
-
containsImage
-
containsSvgWithText
-
containsLinkWithTooltip
-