Package org.jenkinsci.test.acceptance.po
Class ContainerPageObject
java.lang.Object
org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
org.jenkinsci.test.acceptance.po.PageObject
org.jenkinsci.test.acceptance.po.ConfigurablePageObject
org.jenkinsci.test.acceptance.po.ContainerPageObject
- All Implemented Interfaces:
CapybaraPortingLayer
- Direct Known Subclasses:
Build,GlobalSecurityConfig,GlobalToolConfig,ManagedCredentials,ManagedCredentialsBinding,MixIn,Node,Plugin,PluginManager,TopLevelItem,UpdateCenter,User,View,WhoAmI
PageObject that represents a model that has multiple views underneath.- 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, 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
ConstructorsModifierConstructorDescriptionprotectedContainerPageObject(com.google.inject.Injector injector, URL url) protectedContainerPageObject(PageObject context, URL url) -
Method Summary
Modifier and TypeMethodDescription<T extends Action>
TCreate action of this page object.<T extends Action>
TCreate action of this page object.booleancom.fasterxml.jackson.databind.JsonNodegetJson()Makes the API call and obtains JSON representation.com.fasterxml.jackson.databind.JsonNodeGet a map with all links within the navigation area.inthashCode()Methods 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, toString, 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
-
Constructor Details
-
ContainerPageObject
-
ContainerPageObject
-
-
Method Details
-
getConfigUrl
- Specified by:
getConfigUrlin classConfigurablePageObject
-
getJsonApiUrl
-
getJson
public com.fasterxml.jackson.databind.JsonNode getJson()Makes the API call and obtains JSON representation. -
getJson
- Parameters:
queryString- Additional query string to narrow down the data retrieval, like "tree=..." or "depth=..."
-
action
Create action of this page object. SeeAction,ActionPageObject- Parameters:
type- Action type to create.
-
action
Create action of this page object. Preffer to useaction(Class)where fixed paths and link text is known.- Type Parameters:
T- The concrete action class to create.- Parameters:
type- Action type to createpath- the relative path from this PageObjectlinkText- optional text of the link in the sidebar.- Returns:
- the newly contructed Action of type T
-
equals
-
hashCode
public int hashCode()
-