Package org.jenkinsci.test.acceptance.po
Class TopLevelItem
- All Implemented Interfaces:
CapybaraPortingLayer
Super class for top level items.
Top level items include
Job
s and other non-buildable items such as Folder
s.
Use Describable
annotation to register an implementation.-
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
ConstructorDescriptionTopLevelItem
(com.google.inject.Injector injector, URL url, String name) TopLevelItem
(PageObject context, URL url, String name) -
Method Summary
Modifier and TypeMethodDescription<T extends TopLevelItem>
T"Casts" this object into a subtype by creating the specified type.abstract void
delete()
void
description
(String description, boolean withCodeMirror) Changes the description.boolean
int
hashCode()
<T extends TopLevelItem>
TRenames the job.void
setDescription
(String description) void
setDescription
(String description, boolean withCodeMirror) toString()
Methods inherited from class org.jenkinsci.test.acceptance.po.ContainerPageObject
action, action, getConfigUrl, getJson, getJson, getJsonApiUrl, getNavigationLinks
Methods inherited from class org.jenkinsci.test.acceptance.po.ConfigurablePageObject
apply, configure, configure, configure, configure, ensureConfigPage, getFormName, getSubmitButtonText, save
Methods inherited from class org.jenkinsci.test.acceptance.po.PageObject
control, control, createPageArea, createRandomName, getContext, getJenkins, open, 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
-
name
-
-
Constructor Details
-
TopLevelItem
-
TopLevelItem
-
-
Method Details
-
getParameters
-
renameTo
Renames the job. Opens the configuration section, sets the name and saves the form. Finally the rename is confirmed.- Parameters:
newName
- the new name of the job- Returns:
- the renamed job (with new URL)
-
getDescription
-
description
Changes the description. Opens the configuration section, sets the description and saves the form.- Parameters:
description
- the description of the jobwithCodeMirror
- if description field uses CodeMirror or not (depending on Markup Formatter)
-
setDescription
-
setDescription
-
getDisplayName
-
as
"Casts" this object into a subtype by creating the specified type. -
toString
- Overrides:
toString
in classPageObject
-
equals
- Overrides:
equals
in classContainerPageObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classContainerPageObject
-
delete
public abstract void delete()
-