Class Masquerade

java.lang.Object
io.jmix.masquerade.Masquerade

public class Masquerade extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    A special static attribute for UI components in the framework that is generated for component.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends Composite<?>>
    T
    $j(Class<T> clazz)
    Finds and returns the SelenideElement wrapper for the Composite UI element of the passed class type.
    static <T> T
    $j(Class<T> clazz, String... uiTestIdPath)
    Finds and returns the element wrapper with the passed class type by the path of UI_TEST_ID.
    static <T> T
    $j(Class<T> clazz, org.openqa.selenium.By by)
    Finds and returns the element wrapper with the passed class type by the passed By.
    static com.codeborne.selenide.SelenideElement
    $j(String uiTestId)
    Finds and returns the SelenideElement wrapper for the UI element with the passed UI_TEST_ID.
    static com.codeborne.selenide.SelenideElement
    $j(String... uiTestIdPath)
    Finds and returns the SelenideElement wrapper for the UI element by the path of UI_TEST_ID.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • UI_TEST_ID

      public static final String 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 the jmix.ui.test-mode application property to true.
      See Also:
  • Constructor Details

    • Masquerade

      public Masquerade()
  • Method Details

    • $j

      public static com.codeborne.selenide.SelenideElement $j(String uiTestId)
      Finds and returns the SelenideElement wrapper for the UI element with the passed UI_TEST_ID.
      Parameters:
      uiTestId - UI_TEST_ID element attribute
      Returns:
      SelenideElement wrapper of the found web-element
    • $j

      public static com.codeborne.selenide.SelenideElement $j(String... uiTestIdPath)
      Finds and returns the SelenideElement wrapper for the UI element by the path of UI_TEST_ID.
      Parameters:
      uiTestIdPath - path of UI_TEST_ID attributes to the element
      Returns:
      SelenideElement wrapper of the found web-element
    • $j

      public static <T> T $j(Class<T> clazz, String... uiTestIdPath)
      Finds and returns the element wrapper with the passed class type by the path of UI_TEST_ID.
      Type Parameters:
      T - type of the UI element wrapper
      Parameters:
      clazz - wrapper class of the required UI element
      uiTestIdPath - path of UI_TEST_ID attributes to the element
      Returns:
      UI element wrapper with the T type
    • $j

      public static <T> T $j(Class<T> clazz, org.openqa.selenium.By by)
      Finds and returns the element wrapper with the passed class type by the passed By.
      Type Parameters:
      T - type of the UI element wrapper
      Parameters:
      clazz - wrapper class of the required UI element
      by - By to select UI element
      Returns:
      UI element wrapper with the T type
    • $j

      public static <T extends Composite<?>> T $j(Class<T> clazz)
      Finds and returns the SelenideElement wrapper for the Composite UI element of the passed class type.
      Type Parameters:
      T - type of the Composite wrapper
      Parameters:
      clazz - class of the Composite wrapper
      Returns:
      Composite UI element
      See Also: