Class FormField


  • public final class FormField
    extends java.lang.Object
    • Field Detail

      • TAG

        public static final FormField TAG
        The usual page properties Tag field.
      • HIDE_IN_NAV

        public static final FormField HIDE_IN_NAV
        The usual page properties Hide In Navigation field.
      • SLING_REDIRECT

        public static final FormField SLING_REDIRECT
        The usual page properties Sling Redirect.
      • TITLE

        public static final FormField TITLE
        The usual page properties Title field.
      • ASSET_FOLDER_TITLE

        public static final FormField ASSET_FOLDER_TITLE
        The usual asset folder properties Title field.
      • PAGE_TITLE

        public static final FormField PAGE_TITLE
        Page Title name when creating a page.
      • SUBTITLE

        public static final FormField SUBTITLE
        Subtitle when creating a page.
      • NAV_TITLE

        public static final FormField NAV_TITLE
        Navigation Title.
      • DESCRIPTION

        public static final FormField DESCRIPTION
        The usual page properties Description field.
      • PRIMARY_TYPE

        public static final FormField PRIMARY_TYPE
        The usual jcr primaryType field.
      • OP_NAME

        public static final FormField OP_NAME
        The usual operation name field.
      • DESIGN_PATH

        public static final FormField DESIGN_PATH
        The usual design path field.
      • VANITY_PATH

        public static final FormField VANITY_PATH
        The usual vanity path field.
      • SLING_ALIAS

        public static final FormField SLING_ALIAS
        he usual page properties Sling Alias
    • Constructor Detail

      • FormField

        public FormField​(java.lang.String fieldName)
        Parameters:
        fieldName - the field / attribute name value.
    • Method Detail

      • getElement

        public com.codeborne.selenide.SelenideElement getElement()
        Returns:
        the element for this field.
      • getName

        public java.lang.String getName()
        Returns:
        the field name used to build the selector.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        the selector string
      • getFullyDecoratedElement

        public com.codeborne.selenide.SelenideElement getFullyDecoratedElement​(java.lang.String prefix,
                                                                               java.lang.String... suffix)
        Parameters:
        prefix - (i.e input, coral-checkbox, etc.. ...)
        suffix - (i.e any selector appended...)
        Returns:
        the element with a selector in the form of "prefix[name='{fieldName}']suffix"
      • getDecoratedElement

        public com.codeborne.selenide.SelenideElement getDecoratedElement​(java.lang.String... suffix)
        Parameters:
        suffix - (i.e any selector appended...)
        Returns:
        the element with a selector in the form of "[name='{fieldName}']suffix"