public static List < GUIObjectDetails > transformKeys ( List < String > keys , TestPlatform platform ) { List < GUIObjectDetails > htmlObjectDetailsList = null ; // Get the HTML object list based on the platform. // Note: This part is reached only when there is a valid platform specified. So it's safe to proceed without a // default case in switch switch ( platform ) { case WEB : htmlObjectDetailsList = HtmlSeLionElementSet . getInstance ( ) . getGUIObjectList ( keys ) ; break ; case IOS : htmlObjectDetailsList = IOSSeLionElementSet . getInstance ( ) . getGUIObjectList ( keys ) ; break ; case ANDROID : htmlObjectDetailsList = AndroidSeLionElementSet . getInstance ( ) . getGUIObjectList ( keys ) ; break ; case MOBILE : htmlObjectDetailsList = MobileSeLionElementSet . getInstance ( ) . getGUIObjectList ( keys ) ; break ; } return htmlObjectDetailsList ; }
This method convert each key in the data sheet into corresponding HtmlObjectDetails object and returns list of HtmlObjectDetails