Class HiddenHtmlElement


  • public class HiddenHtmlElement
    extends HtmlElement
    Used to represent generic HTML element (tag). It could be used to work with generic elements like span, div, etc. For more info check documentation of HtmlElement
    • Field Detail

      • RULES_DUMMY

        protected static final String[] RULES_DUMMY
        used by all HiddenHtmlXYZ classes for passing it to UiElementProperties's method checkTypeAndRules()
    • Method Detail

      • getAttributeValue

        public String getAttributeValue​(String attribute)
        Get element attribute value
        Specified by:
        getAttributeValue in class HtmlElement
        Returns:
        value of the attribute (style/class/...)
      • getCssPropertyValue

        public String getCssPropertyValue​(String propertyName)
        Get CSS property value
        Specified by:
        getCssPropertyValue in class HtmlElement
        Parameters:
        propertyName - CSS property name
        Returns:
        the value of the target CSS property
      • getTextContent

        public String getTextContent()
        Get innerText of this element, including sub-elements, without any leading or trailing whitespace.
        Specified by:
        getTextContent in class HtmlElement
        Returns:
        innerText of this element, including sub-elements, without any leading or trailing whitespace.
      • setTextContent

        public void setTextContent​(String content)
        Set the content of the element
        Specified by:
        setTextContent in class HtmlElement
        Parameters:
        content - the new content
      • clickAndDownloadFile

        protected void clickAndDownloadFile()
        Click the element and download file
      • click

        public void click()
        Simulate mouse click action
        Specified by:
        click in class HtmlElement
      • doubleClick

        public void doubleClick()
        Simulate mouse double click action
        Specified by:
        doubleClick in class HtmlElement
      • rightClick

        public void rightClick()
        Simulate mouse right click action
        Specified by:
        rightClick in class HtmlElement
      • mouseOver

        public void mouseOver()
        Simulate mouse over
        Specified by:
        mouseOver in class HtmlElement
      • dragAndDropTo

        public void dragAndDropTo​(HtmlElement targetElement)
        Drag and drop an element on top of other element
        Specified by:
        dragAndDropTo in class HtmlElement
        Parameters:
        targetElement - the target element