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, 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
ConstructorsModifierConstructorDescriptionprotected
ContainerPageObject
(com.google.inject.Injector injector, URL url) protected
ContainerPageObject
(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.boolean
com.fasterxml.jackson.databind.JsonNode
getJson()
Makes the API call and obtains JSON representation.com.fasterxml.jackson.databind.JsonNode
Get a map with all links within the navigation area.int
hashCode()
Methods inherited from class org.jenkinsci.test.acceptance.po.ConfigurablePageObject
apply, configure, configure, configure, configure, ensureConfigPage, getFormName, save
Methods inherited from class org.jenkinsci.test.acceptance.po.PageObject
control, control, createPageArea, createRandomName, ensureOpen, 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, runThenHandleInputDialog, runThenHandleUserPrompt, sleep, visit, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
Constructor Details
-
ContainerPageObject
-
ContainerPageObject
-
-
Method Details
-
getConfigUrl
- Specified by:
getConfigUrl
in 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()
-