Package | Description |
---|---|
com.github.mkolisnyk.sirius.client.ui |
Common package for all UI related abstractions and supporting classes.
|
com.github.mkolisnyk.sirius.client.ui.controls |
Common package for classes representing page controls.
|
com.github.mkolisnyk.sirius.client.ui.predicates |
Common storage for all core predicates.
|
com.github.mkolisnyk.sirius.cucumber.steps |
Major package to Cucumber-JVM step definitions.
|
Modifier and Type | Method and Description |
---|---|
<T extends Control> |
Page.field(java.lang.String name,
java.lang.Class<T> controlType)
Gets the current page class control with logical name specified.
|
Modifier and Type | Method and Description |
---|---|
Control |
Page.field(java.lang.String name)
Gets the current page class control with logical name specified.
|
static Control |
Page.getFirstAvailableControlFromList(Control[] controls,
int tries)
Goes through the list of proposed controls and returns the first one which appears.
|
Control |
Page.getScrollable()
Returns element which is available for scrolling.
|
Control |
Page.getTextControl(java.lang.String message)
Dynamically generates control object which corresponds to the element
containing text specified by the parameter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Page.allOf(Control[] elements,
Operation<java.lang.Boolean,Control> predicate)
Checks if all elements passed as the parameter have the state
specified by predicate.
|
boolean |
Page.anyOf(Control[] elements,
Operation<java.lang.Boolean,Control> predicate)
Checks if any of elements passed as the parameter has the state
specified by predicate.
|
static Control |
Page.getFirstAvailableControlFromList(Control[] controls,
int tries)
Goes through the list of proposed controls and returns the first one which appears.
|
boolean |
Page.scrollTo(Control control)
Overloaded
Page.scrollTo(Control, ScrollTo) method which looks
for control by scrolling to the top of the screen first and then to the bottom. |
boolean |
Page.scrollTo(Control control,
boolean up)
Swipes screen till specific control appears.
|
boolean |
Page.scrollTo(Control control,
ScrollTo scrollDirection)
Swipes screen till specific control appears.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Page.allOf(Control[] elements,
Operation<java.lang.Boolean,Control> predicate)
Checks if all elements passed as the parameter have the state
specified by predicate.
|
boolean |
Page.anyOf(Control[] elements,
Operation<java.lang.Boolean,Control> predicate)
Checks if any of elements passed as the parameter has the state
specified by predicate.
|
Modifier and Type | Class and Description |
---|---|
class |
CheckBox
Wrapper class which is abstraction over the check box elements
of any similar looking elements which have checked/unchecked state.
|
class |
Edit
Control extension which corresponds to the edit control.
|
class |
Editable
Base class for all controls which have modifiable states
like edit fields, check boxes etc.
|
class |
RadioButton
Wrapper class which is abstraction over the radio buttons or any other similar
items which can be checked.
|
class |
SelectList
Control extension which wraps Select instance and corresponds to the list objects
(e.g.
|
class |
TableView
Major class corresponding to compound elements processing.
|
Modifier and Type | Method and Description |
---|---|
<T extends Control> |
TableView.getSubItem(java.lang.String name,
int index,
java.lang.Class<T> itemType)
Common method which generates control object for specific sub-item of specific type.
|
Modifier and Type | Method and Description |
---|---|
Control |
TableView.getItem(int index)
Generates and returns control object which corresponds to the compound object
item specified by index.
|
Control |
TableView.getSubItem(java.lang.String name,
int index)
Overloaded
TableView.getSubItem(String, int, Class) which retrieves returning
control type from the sub-item data. |
Control |
Control.verify(Operation<java.lang.Boolean,Control> predicate)
Verifies that field has some specific state and asserts the error if condition is not met.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
Control.get(Operation<T,Control> predicate)
.
|
boolean |
Control.is(Operation<java.lang.Boolean,Control> predicate)
Checks some state of control depending on predicate specified.
|
<T> T |
Control.perform(Operation<T,Control> predicate)
.
|
Control |
Control.verify(Operation<java.lang.Boolean,Control> predicate)
Verifies that field has some specific state and asserts the error if condition is not met.
|
Modifier and Type | Method and Description |
---|---|
static Operation<java.lang.String,Control> |
Getters.attribute(java.lang.String name)
Predicate for control attribute retrieval.
|
static Operation<java.lang.Boolean,Control> |
States.checked()
Makes sure if element is checked.
|
static Operation<Editable,Control> |
Actions.clear()
Predicate which clears field content.
|
static Operation<Control,Control> |
Actions.click()
Predicate for click operation.
|
static Operation<Control,Control> |
Actions.click()
Predicate for click operation.
|
static Operation<java.lang.Boolean,Control> |
States.disabled()
.
|
static Operation<java.lang.Boolean,Control> |
States.disabled(int timeout)
Checks if control is disabled.
|
static Operation<java.lang.Boolean,Control> |
States.disappears()
.
|
static Operation<java.lang.Boolean,Control> |
States.disappears(int timeout)
Checks if control doesn't exist
|
static Operation<java.lang.Boolean,Control> |
States.enabled()
.
|
static Operation<java.lang.Boolean,Control> |
States.enabled(int timeout)
Checks if control enabled.
|
static Operation<java.lang.Boolean,Control> |
States.exists()
.
|
static Operation<java.lang.Boolean,Control> |
States.exists(int timeout)
Checks if control exists.
|
static Operation<java.lang.Boolean,Control> |
States.hasText(java.lang.String text)
Verifies if element has specific text.
|
static Operation<java.lang.Boolean,Control> |
States.invisible()
.
|
static Operation<java.lang.Boolean,Control> |
States.invisible(int timeout)
Checks if control is invisible.
|
static Operation<Page,Control> |
Getters.parent()
Predicate for retrieving parent object of the control.
|
static Operation<java.awt.Rectangle,Control> |
Getters.rectangle()
Getter for element rectangular area.
|
static Operation<Control,Control> |
Actions.sendKeys(java.lang.String keys)
Predicate for sending sequence of keys to specific element.
|
static Operation<Control,Control> |
Actions.sendKeys(java.lang.String keys)
Predicate for sending sequence of keys to specific element.
|
static Operation<java.lang.String,Control> |
Getters.text()
Predicate for control text retrieval.
|
static Operation<java.lang.String,Control> |
Getters.value()
Predicate for control value retrieval.
|
static Operation<java.lang.Boolean,Control> |
States.visible()
.
|
static Operation<java.lang.Boolean,Control> |
States.visible(int timeout)
Checks if control is visible.
|
static <T extends Page> |
Actions.waitFor(java.lang.Class<T> pageClass)
Waits for specific page to appear.
|
Modifier and Type | Method and Description |
---|---|
Control |
ControlSteps.verifyElementExists(java.lang.String fieldName)
Verifies if element specified by name exists on current page.
|