Class UILocatorInjector


  • @Component
    public class UILocatorInjector
    extends Object
    Galen specs include a list of UI elements under the @objects section. JustTestLah! already maintains these locators in the YAML file of each page object. This class loads the UI locators from a LocatorMap and creates the Galen spec file accordingly.
    • Constructor Detail

      • UILocatorInjector

        public UILocatorInjector()
    • Method Detail

      • injectUILocators

        public String injectUILocators​(String templatePath,
                                       LocatorMap locators)
        Parameters:
        templatePath - path to the Galen template spec
        locators - the LocatorMap
        Returns:
        path to the full specification (including the UI locators)