Package io.jmix.masquerade
Class Masquerade
java.lang.Object
io.jmix.masquerade.Masquerade
The main starting point of Masquerade.
You start with methods Selenide.open(String) for opening the tested application page
and $j(String) for searching web-elements.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA special static attribute for UI components in the framework that is generated for component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Composite<?>>
TFinds and returns theSelenideElementwrapper for theCompositeUI element of the passed class type.static <T> TFinds and returns the element wrapper with the passed class type by the path ofUI_TEST_ID.static <T> TFinds and returns the element wrapper with the passed class type by the passedBy.static com.codeborne.selenide.SelenideElementFinds and returns theSelenideElementwrapper for the UI element with the passedUI_TEST_ID.static com.codeborne.selenide.SelenideElementFinds and returns theSelenideElementwrapper for the UI element by the path ofUI_TEST_ID.
-
Field Details
-
UI_TEST_ID
A special static attribute for UI components in the framework that is generated for component. To enable generation it is required to set thejmix.ui.test-modeapplication property totrue.- See Also:
-
-
Constructor Details
-
Masquerade
public Masquerade()
-
-
Method Details
-
$j
Finds and returns theSelenideElementwrapper for the UI element with the passedUI_TEST_ID.- Parameters:
uiTestId-UI_TEST_IDelement attribute- Returns:
SelenideElementwrapper of the found web-element
-
$j
Finds and returns theSelenideElementwrapper for the UI element by the path ofUI_TEST_ID.- Parameters:
uiTestIdPath- path ofUI_TEST_IDattributes to the element- Returns:
SelenideElementwrapper of the found web-element
-
$j
Finds and returns the element wrapper with the passed class type by the path ofUI_TEST_ID.- Type Parameters:
T- type of the UI element wrapper- Parameters:
clazz- wrapper class of the required UI elementuiTestIdPath- path ofUI_TEST_IDattributes to the element- Returns:
- UI element wrapper with the
Ttype
-
$j
Finds and returns the element wrapper with the passed class type by the passedBy.- Type Parameters:
T- type of the UI element wrapper- Parameters:
clazz- wrapper class of the required UI elementby-Byto select UI element- Returns:
- UI element wrapper with the
Ttype
-
$j
Finds and returns theSelenideElementwrapper for theCompositeUI element of the passed class type.
-