public class UIDefaultAppTester extends UITester
contextRoot
Constructor and Description |
---|
UIDefaultAppTester(WebDriver driver) |
UIDefaultAppTester(WebDriver driver,
String contextRoot) |
UIDefaultAppTester(WebDriver driver,
String contextRoot,
int implicitWaitSeconds,
int pageLoadTimeoutSeconds,
int scriptTimeoutSeconds) |
Modifier and Type | Method and Description |
---|---|
protected void |
awaitFullyLoggedIn() |
String |
getCurrentDocumentTitle()
Returns the current document title.
|
String |
getCurrentTodoTitle()
Returns the current todo title.
|
long |
getLoginTimeOutInSeconds() |
boolean |
isCurrentPageDocument()
Checks if the currently shown page is a document.
|
boolean |
isCurrentPageDocuments()
Checks if the application is currently showing the "Document List" page.
|
boolean |
isCurrentPageRunModel()
Checks if the application is currently showing the "Run Model" page.
|
boolean |
isCurrentPageTodo()
Checks if the currently shown page is a todo.
|
boolean |
isCurrentPageTodoList()
Checks if the application is currently showing the "Todo List" page.
|
boolean |
isLoggedIn() |
void |
login(String name,
String password)
Login to the default application, as given user, but does not wait for the login to succeed.
|
void |
loginAdminAdminAndWait()
Login to the default application, as admin/admin, Awaits until the Vaadin application fully boots.
|
void |
loginAndWait(String name,
String password)
Login to the default application, as given user.
|
void |
logout()
Logout from process console.
|
void |
openDocument(String documentTitle)
Goes to the 'Documents' page and opens document based on its title.
|
void |
openDocuments()
Opens the page with the document list.
|
void |
openRunModel()
Opens the "Run Model" page.
|
void |
openTodo(String todoTitle)
Goes to todo list and opens todo based on its title.
|
void |
openTodoList()
Opens the todo list page.
|
void |
openUrl(String url,
By anyElementId)
Open an arbitrary url and waits until expected element shows up.
|
ModelInstance |
runModel(String modelName)
Runs model based on modelName and return model instance id
|
void |
setLoginTimeOutInSeconds(long loginTimeOutInSeconds) |
assertDocumentTitles, assertUserSeesDocument, closeMenu, getDocuments, getDocumentTitles, getLoggedInPerson, getRemote, getTodoList, menuItemById, mockLogIn, mockLogout, waitForAttributeToBe, waitForElementPresent, waitForElementPresent
$, actions, clickButton, contains, createIdLocator, findAllByAttributeValue, findAllByClassname, findAllByFormId, findAllById, findAllByIdPrefix, findAllByLspsId, findAllByTextContent, findAllByXpath, findByAttributeValue, findByClassname, findByFormId, findById, findByIdPrefix, findByLspsId, findByTextContent, findByXpath, findCaptionByTextContent, findElement, findElements, findNthByTag, getDriver, getLspsCommandExecutor, toString, waitForVaadin, webElementsByExactTextContent, webElementsByFormId, webElementsById, webElementsByIdPrefix, webElementsByLspsFormId, webElementsByLspsId, webElementsByTextContent, webElementsByXpath
public UIDefaultAppTester(WebDriver driver)
public UIDefaultAppTester(WebDriver driver, String contextRoot)
public UIDefaultAppTester(WebDriver driver, String contextRoot, int implicitWaitSeconds, int pageLoadTimeoutSeconds, int scriptTimeoutSeconds)
public void loginAdminAdminAndWait()
public void loginAndWait(String name, String password)
name
- the user name, not nullpassword
- the password, not null.public void login(String name, String password)
name
- the user name, not nullpassword
- the password, not null.protected void awaitFullyLoggedIn()
public boolean isLoggedIn()
public boolean isCurrentPageDocuments()
public boolean isCurrentPageRunModel()
public boolean isCurrentPageTodoList()
public void openTodo(String todoTitle)
openTodo
in class UITester
todoTitle
- the exact todo title.RuntimeException
- if the UI expression fails to evaluate.public ModelInstance runModel(String modelName)
public void openRunModel()
public void openDocument(String documentTitle)
documentTitle
- RuntimeException
- if the UI expression fails to evaluate.public void openDocuments()
public void logout()
public boolean isCurrentPageDocument()
public String getCurrentDocumentTitle()
isCurrentPageDocument()
returns false).public String getCurrentTodoTitle()
isCurrentPageTodo()
returns false).public boolean isCurrentPageTodo()
public void openTodoList()
public void openUrl(String url, By anyElementId)
url
- anyElementId
- public long getLoginTimeOutInSeconds()
public void setLoginTimeOutInSeconds(long loginTimeOutInSeconds)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.