Class AugmentingEnhancer
java.lang.Object
org.jboss.arquillian.drone.webdriver.augmentation.AugmentingEnhancer
- All Implemented Interfaces:
DroneInstanceEnhancer<org.openqa.selenium.remote.RemoteWebDriver>,Sortable
public class AugmentingEnhancer
extends Object
implements DroneInstanceEnhancer<org.openqa.selenium.remote.RemoteWebDriver>
Augments
RemoteWebDriver instances so that it implements all interfaces determined by provided Capabilities.- Author:
- Lukas Fryc
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEnhance(InstanceOrCallableInstance instance, Class<?> droneType, Class<? extends Annotation> qualifier) org.openqa.selenium.remote.RemoteWebDriverdeenhance(org.openqa.selenium.remote.RemoteWebDriver enhancedInstance, Class<? extends Annotation> qualifier) Unwraps the instanceorg.openqa.selenium.remote.RemoteWebDriverenhance(org.openqa.selenium.remote.RemoteWebDriver instance, Class<? extends Annotation> qualifier) Augments the instanceint
-
Field Details
-
DRONE_AUGMENTED
- See Also:
-
-
Constructor Details
-
AugmentingEnhancer
public AugmentingEnhancer()
-
-
Method Details
-
getPrecedence
public int getPrecedence()- Specified by:
getPrecedencein interfaceSortable
-
canEnhance
public boolean canEnhance(InstanceOrCallableInstance instance, Class<?> droneType, Class<? extends Annotation> qualifier) - Specified by:
canEnhancein interfaceDroneInstanceEnhancer<org.openqa.selenium.remote.RemoteWebDriver>
-
enhance
public org.openqa.selenium.remote.RemoteWebDriver enhance(org.openqa.selenium.remote.RemoteWebDriver instance, Class<? extends Annotation> qualifier) Augments the instance- Specified by:
enhancein interfaceDroneInstanceEnhancer<org.openqa.selenium.remote.RemoteWebDriver>
-
deenhance
public org.openqa.selenium.remote.RemoteWebDriver deenhance(org.openqa.selenium.remote.RemoteWebDriver enhancedInstance, Class<? extends Annotation> qualifier) Unwraps the instance- Specified by:
deenhancein interfaceDroneInstanceEnhancer<org.openqa.selenium.remote.RemoteWebDriver>
-