Class DefaultSeleniumTextField

    • Constructor Detail

      • DefaultSeleniumTextField

        public DefaultSeleniumTextField()
    • Method Detail

      • getText

        public java.lang.String getText()
        Description copied from interface: TextField
        Returns the displayed text of the text field. If it is a multiline text, the lines are separated with a line break character (\n).
        Specified by:
        getText in interface TextField
        Returns:
        the field's text
      • setText

        public void setText​(java.lang.String text)
        Description copied from interface: TextField
        Sets the given text. The text field does not lose its focus after inserting a text. You have to call TextField.loseFocus() explicitly.
        Specified by:
        setText in interface TextField
        Parameters:
        text - the text to be set
      • loseFocus

        public void loseFocus()
        Description copied from interface: TextField
        Forces the text field to lose the focus (e.g. triggering on change events).
        Specified by:
        loseFocus in interface TextField
      • deleteText

        protected void deleteText()
        Delete the element's text
        Since:
        2.0.0
      • isDisplayed

        public boolean isDisplayed()
        Description copied from interface: Displayable
        Returns true, if the element is displayed. "Displayed" means it has to be part of the dom and it is not hidden using css.
        Specified by:
        isDisplayed in interface Displayable
        Returns:
        true, if the element is displayed.
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: Enabable
        Returns true, if the element is enabled. "enabled" means it is not disabled and not readonly.
        Specified by:
        isEnabled in interface Enabable
        Returns:
        true, if the element is enabled.