Interface GuiElementAssert

    • Method Detail

      • assertIsPresentFast

        @Deprecated
        default void assertIsPresentFast()
        Deprecated.
        Assert isPresent() = true.
      • assertIsNotPresentFast

        @Deprecated
        default void assertIsNotPresentFast()
        Deprecated.
        Assert isPresent() = false.
      • assertIsNotSelectable

        void assertIsNotSelectable()
        Deprecated.
        Checks if GuiElement is not selectable. WARNING: Can change the selection status of the element, if it is selectable.
      • assertIsSelectable

        void assertIsSelectable()
        Deprecated.
        Assert is selectable
      • assertIsDisplayedFromWebElement

        @Deprecated
        default void assertIsDisplayedFromWebElement()
        Deprecated.
        Assert is displayed from webelement with wait
      • assertIsNotDisplayedFromWebElement

        @Deprecated
        default void assertIsNotDisplayedFromWebElement()
        Deprecated.
        Assert is not displayed from webelement with wait
      • assertText

        void assertText​(java.lang.String text)
        Deprecated.
        Checks if GuiElement contains the given text. Please note that this will only assert successfully, if the elements text is actually visible (wait). The actual value will be trimmed.
        Parameters:
        text - The text to check. Will be trimmed.
        See Also:
        GuiElementWait.waitForText(String)
      • assertContainsText

        @Deprecated
        default void assertContainsText​(java.lang.String... text)
        Deprecated.
        Checks if the GuiElement, contains the given texts. Please note that this will only assert successfully, if the elements text is actually visible. Use assertTextContains(String...) instead
        Parameters:
        text - Strings that should be contained in text. Will NOT be trimmed.
      • assertTextContains

        void assertTextContains​(java.lang.String... text)
        Deprecated.
        Checks if the GuiElement, contains the given texts. Please note that this will only assert successfully, if the elements text is actually visible.
        Parameters:
        text - Strings that should be contained in text. Will NOT be trimmed.
      • assertTextContainsNot

        void assertTextContainsNot​(java.lang.String... text)
        Deprecated.
        Checks if the GuiElement, contains not given texts. Please note that this will only assert successfully, if the elements text is actually visible.
        Parameters:
        text - Strings that should not be contained in text. Will NOT be trimmed.
      • assertAttributeIsPresent

        void assertAttributeIsPresent​(java.lang.String attributeName)
        Deprecated.
        Assert attribute is present.
        Parameters:
        attributeName - Will be trimmed.
        See Also:
        GuiElementWait.waitForAttribute(String)
      • assertAttributeValue

        void assertAttributeValue​(java.lang.String attributeName,
                                  java.lang.String value)
        Deprecated.
        Checks if the GuiElement contains matches a given text in an attribute. The actual value will be trimmed.
        Parameters:
        attributeName - Attribute whose value is checked. Will be trimmed.
        value - Text that should be matched. Will be trimmed.
        See Also:
        GuiElementWait.waitForAttribute(String, String)
      • assertAttributeContains

        void assertAttributeContains​(java.lang.String attributeName,
                                     java.lang.String textContainedByAttribute)
        Deprecated.
        Checks if the GuiElement, contains the given text in an attribute.
        Parameters:
        attributeName - Attribute whose value is checked. Will be trimmed.
        textContainedByAttribute - Text that should be contained. Will NOT be trimmed.
        See Also:
        GuiElementWait.waitForAttributeContains(String, String)
      • assertAttributeContainsNot

        void assertAttributeContainsNot​(java.lang.String attributeName,
                                        java.lang.String textNotContainedByAttribute)
        Deprecated.
        Checks if the GuiElement, contains not the given text in an attribute.
        Parameters:
        attributeName - Attribute whose value is checked. Will be trimmed.
        textNotContainedByAttribute - Text that should not be contained. Will NOT be trimmed.
        See Also:
        GuiElementWait.waitForAttributeContainsNot(String, String)
      • assertAnyFollowingTextNodeContains

        void assertAnyFollowingTextNodeContains​(java.lang.String contains)
        Deprecated.
        Checks, if the GuiElement contains the Text in one of the minor TextNodes.
        Parameters:
        contains - Text that should be contained. Will NOT be trimmed.
      • assertInputFieldLength

        void assertInputFieldLength​(int length)
        Deprecated.
        Functions checks whether given input-length is valid
        Parameters:
        length - InputFieldsLength that is expected.
      • assertLayout

        void assertLayout​(ILayout layout)
        Deprecated.
        Checks two guielements layouts against each other.
        Parameters:
        layout - Layout description.
      • assertCssClassIsPresent

        void assertCssClassIsPresent​(java.lang.String className)
        Deprecated.
        Checks if the element has a given css class name
        Parameters:
        className -
      • assertCssClassIsNotPresent

        void assertCssClassIsNotPresent​(java.lang.String className)
        Deprecated.
        Checks if the element has not a given css class name
        Parameters:
        className -
      • assertScreenshot

        void assertScreenshot​(java.lang.String targetImageName,
                              double confidenceThreshold)
        Deprecated.
        Asserts the pixel of this element
      • assertVisible

        void assertVisible​(boolean fullyVisible)
        Deprecated.
        Asserts the visibility of this element
        Parameters:
        fullyVisible - If TRUE, the bounding box of the element need to be fully contained in the viewport. Otherwise, only an intersection is needed.
      • assertNotVisible

        void assertNotVisible()
        Deprecated.
        Asserts the invisibility of this element