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 String
A 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 theSelenideElement
wrapper for theComposite
UI element of the passed class type.static <T> T
Finds and returns the element wrapper with the passed class type by the path ofUI_TEST_ID
.static <T> T
Finds and returns the element wrapper with the passed class type by the passedBy
.static com.codeborne.selenide.SelenideElement
Finds and returns theSelenideElement
wrapper for the UI element with the passedUI_TEST_ID
.static com.codeborne.selenide.SelenideElement
Finds and returns theSelenideElement
wrapper 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-mode
application property totrue
.- See Also:
-
-
Constructor Details
-
Masquerade
public Masquerade()
-
-
Method Details
-
$j
Finds and returns theSelenideElement
wrapper for the UI element with the passedUI_TEST_ID
.- Parameters:
uiTestId
-UI_TEST_ID
element attribute- Returns:
SelenideElement
wrapper of the found web-element
-
$j
Finds and returns theSelenideElement
wrapper for the UI element by the path ofUI_TEST_ID
.- Parameters:
uiTestIdPath
- path ofUI_TEST_ID
attributes to the element- Returns:
SelenideElement
wrapper 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_ID
attributes to the element- Returns:
- UI element wrapper with the
T
type
-
$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
-By
to select UI element- Returns:
- UI element wrapper with the
T
type
-
$j
Finds and returns theSelenideElement
wrapper for theComposite
UI element of the passed class type.
-