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 Details

    • GrapheneEnhancer

      public GrapheneEnhancer()
  • Method Details

    • getPrecedence

      public int getPrecedence()
      Specified by:
      getPrecedence in interface org.jboss.arquillian.drone.spi.Sortable
    • canEnhance

      public boolean canEnhance(org.jboss.arquillian.drone.spi.InstanceOrCallableInstance instance, Class<?> droneType, Class<? extends Annotation> qualifier)
      Specified by:
      canEnhance in interface org.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 the WebDriver instance provided by Drone in a proxy and sets the driver into context
      Specified by:
      enhance in interface org.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:
      deenhance in interface org.jboss.arquillian.drone.spi.DroneInstanceEnhancer<org.openqa.selenium.WebDriver>