Class CapabilitiesOptionsMapper


  • public class CapabilitiesOptionsMapper
    extends Object
    • Constructor Detail

      • CapabilitiesOptionsMapper

        public CapabilitiesOptionsMapper()
    • Method Detail

      • mapCapabilities

        public static void mapCapabilities​(Object object,
                                           org.openqa.selenium.Capabilities capabilities,
                                           String browserPrefix)
        Parses capabilities set in Capabilities and according to set-method names it sets the values into corresponding variables of the given Object instance. It is expected that the parameters defined in arquillian.xml file have a specific browserPrefix; after this prefix then there is the parameter name itself (whole string has to be in camelcase)
        Parameters:
        object - An instance of an object the values should be set into
        capabilities - A Capabilities that contains parameters and its values set in arquillian.xml
        browserPrefix - A prefix the should the mapped parameters should start with