Class GuiElement

    • Method Detail

      • getCore

        public GuiElementCore getCore()
        Returns the raw core without any decorators
      • withWebElementFilter

        @Deprecated
        public GuiElement withWebElementFilter​(java.util.function.Predicate<org.openqa.selenium.WebElement> filter)
        Deprecated.
        Use DefaultLocator instead
        After retrieving all WebElements of the given locator, this method can be used to filter the WebElements. Different filters can be applied in conjunction (and).
        Parameters:
        filter - Filters to be applied
        Returns:
        The same GuiElement
      • setDescription

        @Deprecated
        public GuiElement setDescription​(java.lang.String description)
        Deprecated.
        Use setName(String) instead
        Add a Decorator to log every action performed on this element with addition to a short description of it.
        Parameters:
        description - A very short description of this GuiElement, for example "Continue Shopping Button"
      • getSubElement

        @Deprecated
        public GuiElement getSubElement​(org.openqa.selenium.By by)
        Deprecated.
        Get sub element by locator. Using this executes a find on the parent element and the parent.findElement for the given locator. It does not wait for the subelement if the parent has been found!
        Parameters:
        by - Locator of new element.
        Returns:
        GuiElement
      • getSubElement

        @Deprecated
        public GuiElement getSubElement​(org.openqa.selenium.By by,
                                        java.lang.String description)
        Deprecated.
        Get sub element by locator. Using this executes a find on the parent element and the parent.findElement for the given locator. It does not wait for the subelement if the parent has been found!
        Parameters:
        by - Locator of new element.
        description - Description for GuiElement
        Returns:
        GuiElement
      • getSubElement

        @Deprecated
        public GuiElement getSubElement​(Locator locator)
        Deprecated.
      • getBy

        @Deprecated
        public org.openqa.selenium.By getBy()
        Deprecated.
      • scrollToElement

        @Deprecated
        public UiElement scrollToElement()
        Deprecated.
      • scrollToElement

        @Deprecated
        public UiElement scrollToElement​(int yOffset)
        Deprecated.
      • clear

        public UiElement clear()
        Deprecated.
        This method is no longer acceptable as a part of GuiElement. Use eu.tsystems.mms.tic.testframework.webdrivermanager.DesktopWebDriverUtils#clickAbsolute() instead
        Specified by:
        clear in interface InteractiveWebElementActions
      • hover

        public InteractiveUiElement hover()
        Deprecated.
        This method is no longer acceptable as a part of GuiElement. Use eu.tsystems.mms.tic.testframework.webdrivermanager.DesktopWebDriverUtils#mouseOverAbsolute2Axis() instead
        Specified by:
        hover in interface InteractiveWebElementActions
      • getTagName

        @Deprecated
        public java.lang.String getTagName()
        Deprecated.
      • getAttribute

        @Deprecated
        public java.lang.String getAttribute​(java.lang.String attributeName)
        Deprecated.
      • isSelected

        @Deprecated
        public boolean isSelected()
        Deprecated.
      • isEnabled

        @Deprecated
        public boolean isEnabled()
        Deprecated.
      • getText

        @Deprecated
        public java.lang.String getText()
        Deprecated.
      • isDisplayed

        @Deprecated
        public boolean isDisplayed()
        Deprecated.
      • isVisible

        @Deprecated
        public boolean isVisible​(boolean complete)
        Deprecated.
      • isSelectable

        @Deprecated
        public boolean isSelectable()
        Deprecated.
        Checks if the element is selectable.

        WARNING: To determine if the element is truly selectable, a selection or deselection will be done and reverted. Keep this in mind.

        Returns:
        true, if the element is selectable.
      • getLocation

        @Deprecated
        public org.openqa.selenium.Point getLocation()
        Deprecated.
      • getSize

        @Deprecated
        public org.openqa.selenium.Dimension getSize()
        Deprecated.
      • getCssValue

        @Deprecated
        public java.lang.String getCssValue​(java.lang.String cssIdentifier)
        Deprecated.
        This method is no longer acceptable as a part of GuiElement. Use eu.tsystems.mms.tic.testframework.webdrivermanager.DesktopWebDriverUtils#mouseOverJS() instead
      • mouseOver

        @Deprecated
        public UiElement mouseOver()
        Deprecated.
      • isPresent

        @Deprecated
        public boolean isPresent()
        Deprecated.
      • getTextsFromChildren

        @Deprecated
        public java.util.List<java.lang.String> getTextsFromChildren()
        Deprecated.
      • anyFollowingTextNodeContains

        @Deprecated
        public boolean anyFollowingTextNodeContains​(java.lang.String contains)
        Deprecated.
      • anyElementContainsText

        @Deprecated
        public TestableUiElement anyElementContainsText​(java.lang.String text)
        Deprecated.
        This method is no part of any interface, because we don't know if we want to support this feature at the moment. The better approach is to use UiElementFinder.find(XPath)
      • getWebElement

        @Deprecated
        public org.openqa.selenium.WebElement getWebElement()
        Deprecated.
        It's dangerous to use this method and rely on the given WebElement because it can become stale during the execution. Use findWebElement(Consumer) instead.
      • swipe

        public UiElement swipe​(int offsetX,
                               int offSetY)
      • getLengthOfValueAfterSendKeys

        @Deprecated
        public int getLengthOfValueAfterSendKeys​(java.lang.String textToInput)
        Deprecated.
      • getNumberOfFoundElements

        @Deprecated
        public int getNumberOfFoundElements()
        Deprecated.
      • contextClick

        public UiElement contextClick()
        Deprecated.
        This method is no longer acceptable as a part of GuiElement. Use eu.tsystems.mms.tic.testframework.webdrivermanager.DesktopWebDriverUtils#doubleClickJS() instead
        Specified by:
        contextClick in interface InteractiveWebElementActions
      • takeScreenshot

        @Deprecated
        public java.io.File takeScreenshot()
        Deprecated.
      • setParent

        public UiElement setParent​(eu.tsystems.mms.tic.testframework.internal.Nameable parent)
        Sets the abstract parent
        Specified by:
        setParent in interface eu.tsystems.mms.tic.testframework.internal.NameableChild<UiElement>
        Parameters:
        parent - UiElement or PageObject
      • getParent

        public eu.tsystems.mms.tic.testframework.internal.Nameable getParent()
        Retrieves the nameable parent.
        Specified by:
        getParent in interface eu.tsystems.mms.tic.testframework.internal.Nameable<UiElement>
        Returns:
        Can be UiElement or PageObject
      • hasOwnName

        public boolean hasOwnName()
        Specified by:
        hasOwnName in interface eu.tsystems.mms.tic.testframework.internal.Nameable<UiElement>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getDriver

        @Deprecated
        public org.openqa.selenium.WebDriver getDriver()
        Deprecated.
      • hasSensibleData

        @Deprecated
        public boolean hasSensibleData()
        Deprecated.
      • setName

        public GuiElement setName​(java.lang.String name)
        Specified by:
        setName in interface eu.tsystems.mms.tic.testframework.internal.Nameable<UiElement>
      • getName

        public java.lang.String getName​(boolean detailed)
        Specified by:
        getName in interface eu.tsystems.mms.tic.testframework.internal.Nameable<UiElement>
      • asserts

        @Deprecated
        public GuiElementAssert asserts()
        Deprecated.
        Provides access to all functional assert methods.
        Returns:
        GuiElementAssert object for functional assertions
      • asserts

        @Deprecated
        public GuiElementAssert asserts​(java.lang.String errorMessage)
        Deprecated.
        Provides access to all assert methods. If an assertion fails, the assertDescription will be given as cause, instead of the technical cause like an isDisplayed error.
        Parameters:
        errorMessage - Cause returned on assertion error.
        Returns:
        GuiElementAssert object for functional assertions
      • nonFunctionalAsserts

        @Deprecated
        public GuiElementAssert nonFunctionalAsserts()
        Deprecated.
        Use optionalAsserts() instead
        Provides access to all non-functional assert methods.
        Returns:
        GuiElementAssert object for non-functional assertions
      • nonFunctionalAsserts

        @Deprecated
        public GuiElementAssert nonFunctionalAsserts​(java.lang.String errorMessage)
        Deprecated.
        Provides access to all non-functional assert methods. If an assertion fails, the assertDescription will be given as cause, instead of the technical cause like an isDisplayed error.
        Parameters:
        errorMessage - Cause returned on assertion error.
        Returns:
        GuiElementAssert object for non-functional assertions
      • optionalAsserts

        @Deprecated
        public GuiElementAssert optionalAsserts()
        Deprecated.
        Provides access to optional assert methods
      • optionalAsserts

        @Deprecated
        public GuiElementAssert optionalAsserts​(java.lang.String errorMessage)
        Deprecated.
        Provides access to optional assert methods
      • assertCollector

        @Deprecated
        public GuiElementAssert assertCollector()
        Deprecated.
        Use asserts() instead
        Provides access to all functional assert methods.
        Returns:
        GuiElementAssert object for functional assertions
      • assertCollector

        @Deprecated
        public GuiElementAssert assertCollector​(java.lang.String errorMessage)
        Deprecated.
        Provides access to all assert methods. If an assertion fails, the assertDescription will be given as cause, instead of the technical cause like an isDisplayed error.
        Parameters:
        errorMessage - Cause returned on assertion error.
        Returns:
        GuiElementAssert object for functional assertions
      • getList

        @Deprecated
        public java.util.List<GuiElement> getList()
        Deprecated.
      • waits

        @Deprecated
        public GuiElementWait waits()
        Deprecated.
        Provides access to all wait methods
      • createXPath

        public java.lang.String createXPath()
        Description copied from interface: UiElementBase
        Creates a xpath of the given Locator hierarchy NOT the actual element hierarchy
        Specified by:
        createXPath in interface UiElementBase
      • findWebElement

        public void findWebElement​(java.util.function.Consumer<org.openqa.selenium.WebElement> consumer)
        Description copied from interface: WebElementRetainer
        Supplies the first found filtered WebElement to a consumer. This makes sure that the element is present it it's current scope and not stale
        Specified by:
        findWebElement in interface WebElementRetainer
      • getSelectElement

        @Deprecated
        public org.openqa.selenium.support.ui.Select getSelectElement()
        Deprecated.