Class PageObjectUtil
java.lang.Object
org.uitnet.testing.smartfwk.ui.core.utils.PageObjectUtil
public class PageObjectUtil extends Object
- Author:
- Madhav Krishna
-
Method Summary
Modifier and Type Method Description static FieldValuegetPageObject(PageObjectInfo poInfo)static PageObjectInfogetPageObjectInfo(String pageObject)Page object should be specified using the format.static ObjectgetPageObjectValidator(PageObjectInfo poInfo, SmartCucumberUiScenarioContext scenarioContext)static ObjectinvokeValidatorMethod(String methodName, Class<?>[] methodArgTypes, Object[] methodArgValues, PageObjectInfo poInfo, SmartCucumberUiScenarioContext scenarioContext)
-
Method Details
-
getPageObjectInfo
Page object should be specified using the format. When POs are in ./src/main/page_objects/ directory: ". {maxTimeToWaitInSeconds: 10}" When POs are in sub directory of ./src/main/page_objects/ directory: " . . {maxTimeToWaitInSeconds: 10}" - Parameters:
pageObject-- Returns:
-
getPageObject
-
getPageObjectValidator
public static Object getPageObjectValidator(PageObjectInfo poInfo, SmartCucumberUiScenarioContext scenarioContext) -
invokeValidatorMethod
public static Object invokeValidatorMethod(String methodName, Class<?>[] methodArgTypes, Object[] methodArgValues, PageObjectInfo poInfo, SmartCucumberUiScenarioContext scenarioContext)
-