Class PageObjectUtil


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

      • 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, params: {p1: 'v1', p2: '${variable1}'} }" When POs are in sub directory of ./src/main/page_objects/ directory: "..{maxTimeToWaitInSeconds: 10}"
        Parameters:
        pageObject -
        Returns:
      • prepareParamValue

        public static String prepareParamValue​(String paramValue,
                                               SmartCucumberUiScenarioContext scenarioContext)
        paramValue may contain the variable like ${variableName} and this variable value should be extracted from scenarioContext.
        Parameters:
        paramValue -
        scenarioContext -
        Returns: