public class UIActions extends Object
Modifier and Type | Method and Description |
---|---|
void |
assertError(int withinSeconds,
String... contents)
Asserts that notification exists and that it contains required texts.
|
void |
assertNotification(String... contents)
Asserts that notification exists and that it contains required texts.
|
void |
clickButton(String id) |
void |
clickButtonByLspsId(String id) |
void |
clickByClassname(String classname) |
void |
clickById(String id) |
void |
clickByXpath(String xpath) |
void |
fillCheckBox(String id,
boolean value) |
void |
fillComboBox(String id,
String value) |
void |
fillDateBox(String id,
String value) |
void |
fillNthTextBox(int nth,
String value) |
void |
fillTextArea(String id,
String value) |
void |
fillTextBox(String id,
String value) |
void |
fillTokenField(String id,
String value) |
void |
selectGridRows(String id,
int... rows)
Selects rows in grid.
|
void |
waitForElementNotPresent(By by,
int seconds) |
void |
waitForElementNotPresent(By by,
int seconds,
int sleepMiliseconds) |
void |
waitForElementPresent(By by)
Wait till element described by descriptor by appears
|
void |
waitForElementPresent(By by,
int seconds) |
void |
waitForElementPresent(By by,
int seconds,
int sleepMiliseconds) |
void |
waitForElementPresent(String id) |
void |
waitForElementPresent(String id,
int seconds) |
void |
waitForElementPresent(String id,
int seconds,
int sleepMiliseconds) |
void |
waitForNoNotification() |
void |
waitForNoNotification(int seconds) |
void |
waitForNotification() |
void |
waitForNotification(int seconds) |
public UIActions(UIFinder finder)
public void fillNthTextBox(int nth, String value)
public void fillCheckBox(String id, boolean value)
public void selectGridRows(String id, int... rows)
id
- - grid idrows
- indexes of rows to selectpublic void clickById(String id)
public void clickByXpath(String xpath)
public void clickByClassname(String classname)
public void clickButton(String id)
public void clickButtonByLspsId(String id)
public void waitForElementPresent(String id)
public void waitForElementPresent(String id, int seconds)
public void waitForElementPresent(String id, int seconds, int sleepMiliseconds)
public void waitForElementPresent(By by)
by
- public void waitForElementPresent(By by, int seconds)
public void waitForElementPresent(By by, int seconds, int sleepMiliseconds)
public void waitForElementNotPresent(By by, int seconds)
public void waitForElementNotPresent(By by, int seconds, int sleepMiliseconds)
public void waitForNotification()
public void waitForNotification(int seconds)
public void waitForNoNotification()
public void waitForNoNotification(int seconds)
public void assertNotification(String... contents)
contents
- - all strings the notification is expected to contain.public void assertError(int withinSeconds, String... contents)
withinSeconds
- contents
- - all strings the notification is expected to contain.Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.