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
,CoberturaAction
,GlobalSecurityConfig
,GlobalToolConfig
,JacocoResultPage
,ManagedCredentials
,ManagedCredentialsBinding
,MixIn
,Node
,Plugin
,PluginManager
,TopLevelItem
,UpdateCenter
,User
,View
public abstract class ContainerPageObject extends ConfigurablePageObject
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
Constructors Modifier Constructor Description protected
ContainerPageObject(com.google.inject.Injector injector, URL url)
protected
ContainerPageObject(PageObject context, URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Action>
Taction(Class<T> type)
Create action of this page object.<T extends Action>
Taction(Class<T> type, String path)
boolean
equals(Object other)
URL
getConfigUrl()
com.fasterxml.jackson.databind.JsonNode
getJson()
Makes the API call and obtains JSON representation.com.fasterxml.jackson.databind.JsonNode
getJson(String queryString)
URL
getJsonApiUrl()
Map<String,String>
getNavigationLinks()
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, getSubmitButtonText, save
-
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, isStale, last, lastIfNotVisible, newInstance, resource, runThenConfirmAlert, runThenConfirmAlert, runThenHandleAlert, runThenHandleAlert, sleep, visit, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
-
-
-
Constructor Detail
-
ContainerPageObject
protected ContainerPageObject(com.google.inject.Injector injector, URL url)
-
ContainerPageObject
protected ContainerPageObject(PageObject context, URL url)
-
-
Method Detail
-
getConfigUrl
public URL getConfigUrl()
- Specified by:
getConfigUrl
in classConfigurablePageObject
-
getJsonApiUrl
public URL getJsonApiUrl()
-
getJson
public com.fasterxml.jackson.databind.JsonNode getJson()
Makes the API call and obtains JSON representation.
-
getJson
public com.fasterxml.jackson.databind.JsonNode getJson(String queryString)
- Parameters:
queryString
- Additional query string to narrow down the data retrieval, like "tree=..." or "depth=..."
-
action
public <T extends Action> T action(Class<T> type)
Create action of this page object. SeeAction
,ActionPageObject
- Parameters:
type
- Action type to create.
-
getNavigationLinks
public Map<String,String> getNavigationLinks()
Get a map with all links within the navigation area. The key contains the href attribute while the value contains the link text.- Returns:
- A map with all links within the navigation area.
-
-