Package org.jenkinsci.test.acceptance.po
Class WizardLogin
- java.lang.Object
-
- org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
-
- org.jenkinsci.test.acceptance.po.PageObject
-
- org.jenkinsci.test.acceptance.po.WizardLogin
-
- All Implemented Interfaces:
CapybaraPortingLayer
public class WizardLogin extends PageObject
Page object for Wizard Login page.
-
-
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 Constructor Description WizardLogin(Jenkins jenkins)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WizardLogin
doLogin(String password)
Login assuming "path" form element availability.
Paths are usually available when using the default Jenkins controller.
(Available thanks to pre-installed form-element-path plugin.)WizardLogin
doLoginDespiteNoPaths(String password)
Login assuming "path" form element unavailability.
Paths are usually unavailable when using the "existing" Jenkins controller.
(Unavailable despite pre-installed form-element-path plugin.)WizardLogin
doSuccessfulLogin(String password)
String
getPassword(JenkinsController controller)
Gets the generated password from the file on disk-
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, isHiddenOrStale, isStale, last, lastIfNotVisible, newInstance, resource, runThenConfirmAlert, runThenConfirmAlert, runThenHandleAlert, runThenHandleAlert, runThenHandleDialog, sleep, visit, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
-
-
-
Constructor Detail
-
WizardLogin
public WizardLogin(Jenkins jenkins)
-
-
Method Detail
-
doLogin
public WizardLogin doLogin(String password)
Login assuming "path" form element availability.
Paths are usually available when using the default Jenkins controller.
(Available thanks to pre-installed form-element-path plugin.)
-
doLoginDespiteNoPaths
public WizardLogin doLoginDespiteNoPaths(String password)
Login assuming "path" form element unavailability.
Paths are usually unavailable when using the "existing" Jenkins controller.
(Unavailable despite pre-installed form-element-path plugin.)
-
doSuccessfulLogin
public WizardLogin doSuccessfulLogin(String password)
-
getPassword
public String getPassword(JenkinsController controller) throws IOException
Gets the generated password from the file on disk- Returns:
- the read password
- Throws:
IOException
- if there is an IO error
-
-