public abstract class ImLoggedInBase extends NavigationWebTask
LoginPage
and logging in by entering username and password.
Concrete subclasses need to define the method loginPageClass()
,
which is supposed to return a concrete LoginPage
class.
logger, user
Constructor and Description |
---|
ImLoggedInBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract <P extends LoginPage<?>> |
loginPageClass() |
protected <P extends LoadablePage> |
pageToLoadClass() |
WebPage |
run(WebPage noPage)
Browse to the login page and do the login.
|
browser, driver, getUser, setUser
public WebPage run(WebPage noPage)
run
in interface WebTask
run
in class NavigationWebTask
noPage
- this param won't be considered: may be nullNavigationWebTask.pageToLoadClass()
protected <P extends LoadablePage> Class<P> pageToLoadClass()
pageToLoadClass
in class NavigationWebTask
LoadablePage
to loadCopyright © 2015. All rights reserved.