Package org.jenkinsci.test.acceptance.po
Class TopLevelItem
- All Implemented Interfaces:
CapybaraPortingLayer
Super class for top level items.
Top level items include
Jobs and other non-buildable items such as Folders.
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
FieldsFields inherited from class org.jenkinsci.test.acceptance.po.PageObject
jsonParser, urlFields inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
driver, injector, LABEL_TO_INPUT_XPATH, timeFields inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
by -
Constructor Summary
ConstructorsConstructorDescriptionTopLevelItem(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 voiddelete()voiddescription(String description, boolean withCodeMirror) Changes the description.booleaninthashCode()<T extends TopLevelItem>
TRenames the job.voidsetDescription(String description) voidsetDescription(String description, boolean withCodeMirror) toString()Methods inherited from class org.jenkinsci.test.acceptance.po.ContainerPageObject
action, action, getConfigUrl, getJson, getJson, getJsonApiUrl, getNavigationLinksMethods inherited from class org.jenkinsci.test.acceptance.po.ConfigurablePageObject
apply, configure, configure, configure, configure, ensureConfigPage, getFormName, saveMethods inherited from class org.jenkinsci.test.acceptance.po.PageObject
control, control, createPageArea, createRandomName, ensureOpen, getContext, getJenkins, open, url, url, visitMethods 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, runThenHandleInputDialog, runThenHandleUserPrompt, 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:
toStringin classPageObject
-
equals
- Overrides:
equalsin classContainerPageObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classContainerPageObject
-
delete
public abstract void delete()
-