Class FormField
- java.lang.Object
-
- com.adobe.cq.testing.selenium.pagewidgets.cq.FormField
-
public final class FormField extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static FormFieldASSET_FOLDER_TITLEThe usual asset folder properties Title field.static FormFieldDESCRIPTIONThe usual page properties Description field.static FormFieldDESIGN_PATHThe usual design path field.static FormFieldHIDE_IN_NAVThe usual page properties Hide In Navigation field.static FormFieldNAV_TITLENavigation Title.static FormFieldOP_NAMEThe usual operation name field.static FormFieldPAGE_TITLEPage Title name when creating a page.static FormFieldPRIMARY_TYPEThe usual jcr primaryType field.static FormFieldSLING_ALIAShe usual page properties Sling Aliasstatic FormFieldSLING_REDIRECTThe usual page properties Sling Redirect.static FormFieldSUBTITLESubtitle when creating a page.static FormFieldTAGThe usual page properties Tag field.static FormFieldTITLEThe usual page properties Title field.static FormFieldVANITY_PATHThe usual vanity path field.
-
Constructor Summary
Constructors Constructor Description FormField(java.lang.String fieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codeborne.selenide.SelenideElementgetDecoratedElement(java.lang.String... suffix)com.codeborne.selenide.SelenideElementgetElement()com.codeborne.selenide.SelenideElementgetFullyDecoratedElement(java.lang.String prefix, java.lang.String... suffix)java.lang.StringgetName()java.lang.StringtoString()
-
-
-
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
-
-
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:
toStringin classjava.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"
-
-