Class GrapheneEnhancer
java.lang.Object
org.jboss.arquillian.graphene.integration.GrapheneEnhancer
- All Implemented Interfaces:
org.jboss.arquillian.drone.spi.DroneInstanceEnhancer<org.openqa.selenium.WebDriver>,org.jboss.arquillian.drone.spi.Sortable
public class GrapheneEnhancer
extends Object
implements org.jboss.arquillian.drone.spi.DroneInstanceEnhancer<org.openqa.selenium.WebDriver>
Wraps the
WebDriver instance provided by Drone in a proxy and sets the driver into context.- Author:
- Lukas Fryc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEnhance(org.jboss.arquillian.drone.spi.InstanceOrCallableInstance instance, Class<?> droneType, Class<? extends Annotation> qualifier) org.openqa.selenium.WebDriverdeenhance(org.openqa.selenium.WebDriver enhancedDriver, Class<? extends Annotation> qualifier) Unwraps the proxyorg.openqa.selenium.WebDriverenhance(org.openqa.selenium.WebDriver driver, Class<? extends Annotation> qualifier) Wraps theWebDriverinstance provided byDronein a proxy and sets the driver into contextint
-
Constructor Details
-
GrapheneEnhancer
public GrapheneEnhancer()
-
-
Method Details
-
getPrecedence
public int getPrecedence()- Specified by:
getPrecedencein interfaceorg.jboss.arquillian.drone.spi.Sortable
-
canEnhance
public boolean canEnhance(org.jboss.arquillian.drone.spi.InstanceOrCallableInstance instance, Class<?> droneType, Class<? extends Annotation> qualifier) - Specified by:
canEnhancein interfaceorg.jboss.arquillian.drone.spi.DroneInstanceEnhancer<org.openqa.selenium.WebDriver>
-
enhance
public org.openqa.selenium.WebDriver enhance(org.openqa.selenium.WebDriver driver, Class<? extends Annotation> qualifier) Wraps theWebDriverinstance provided byDronein a proxy and sets the driver into context- Specified by:
enhancein interfaceorg.jboss.arquillian.drone.spi.DroneInstanceEnhancer<org.openqa.selenium.WebDriver>
-
deenhance
public org.openqa.selenium.WebDriver deenhance(org.openqa.selenium.WebDriver enhancedDriver, Class<? extends Annotation> qualifier) Unwraps the proxy- Specified by:
deenhancein interfaceorg.jboss.arquillian.drone.spi.DroneInstanceEnhancer<org.openqa.selenium.WebDriver>
-