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, setUserpublic WebPage run(WebPage noPage)
run in interface WebTaskrun in class NavigationWebTasknoPage - this param won't be considered: may be nullNavigationWebTask.pageToLoadClass()protected <P extends LoadablePage> Class<P> pageToLoadClass()
pageToLoadClass in class NavigationWebTaskLoadablePage to loadCopyright © 2015. All rights reserved.