Package net.serenitybdd.core.pages
Class PagesAnnotatedField
- java.lang.Object
-
- net.serenitybdd.core.pages.PagesAnnotatedField
-
public class PagesAnnotatedField extends Object
The Pages object keeps track of the Page Objects used during the tests.- Author:
- johnsmart
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PagesAnnotatedField(Field field, ManagedPages annotation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<PagesAnnotatedField>
findFirstAnnotatedField(Class<?> testClass)
Find the first field in the class annotated with the Managed annotation.static Optional<PagesAnnotatedField>
findOptionalAnnotatedField(Class<?> testClass)
Find the first field in the class annotated with the ManagedPages annotation.String
getDefaultBaseUrl()
Class<?>
getFieldType()
protected FieldSetter
set(Object targetObject)
void
setValue(Object testCase, Pages pages)
-
-
-
Constructor Detail
-
PagesAnnotatedField
protected PagesAnnotatedField(Field field, ManagedPages annotation)
-
-
Method Detail
-
findFirstAnnotatedField
public static Optional<PagesAnnotatedField> findFirstAnnotatedField(Class<?> testClass)
Find the first field in the class annotated with the Managed annotation.
-
findOptionalAnnotatedField
public static Optional<PagesAnnotatedField> findOptionalAnnotatedField(Class<?> testClass)
Find the first field in the class annotated with the ManagedPages annotation.
-
getFieldType
public Class<?> getFieldType()
-
set
protected FieldSetter set(Object targetObject)
-
getDefaultBaseUrl
public String getDefaultBaseUrl()
-
-