Class PageObjectUtil

java.lang.Object
org.uitnet.testing.smartfwk.ui.core.utils.PageObjectUtil

public class PageObjectUtil
extends Object
Author:
Madhav Krishna
  • Method Details

    • getPageObjectInfo

      public static PageObjectInfo getPageObjectInfo​(String pageObject)
      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

      public static FieldValue getPageObject​(PageObjectInfo poInfo)
    • getPageObjectValidator

      public static Object getPageObjectValidator​(PageObjectInfo poInfo, SmartCucumberUiScenarioContext scenarioContext)
    • invokeValidatorMethod

      public static Object invokeValidatorMethod​(String methodName, Class<?>[] methodArgTypes, Object[] methodArgValues, PageObjectInfo poInfo, SmartCucumberUiScenarioContext scenarioContext)