Class CapabilitiesOptionsMapper
java.lang.Object
org.jboss.arquillian.drone.webdriver.factory.CapabilitiesOptionsMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidmapCapabilities(Object object, org.openqa.selenium.Capabilities capabilities, String browserPrefix) Parses capabilities set inCapabilitiesand according to set-method names it sets the values into corresponding variables of the given Object instance.
-
Constructor Details
-
CapabilitiesOptionsMapper
public CapabilitiesOptionsMapper()
-
-
Method Details
-
mapCapabilities
public static void mapCapabilities(Object object, org.openqa.selenium.Capabilities capabilities, String browserPrefix) Parses capabilities set inCapabilitiesand 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 intocapabilities- ACapabilitiesthat contains parameters and its values set in arquillian.xmlbrowserPrefix- A prefix the should the mapped parameters should start with
-