Class ManagedWebDriverAnnotatedField

java.lang.Object
net.thucydides.core.annotations.ManagedWebDriverAnnotatedField

public class ManagedWebDriverAnnotatedField
extends java.lang.Object
The WebDriver driver is stored as an annotated field in the test classes.
Author:
johnsmart
  • Method Summary

    Modifier and Type Method Description
    static ManagedWebDriverAnnotatedField findFirstAnnotatedField​(java.lang.Class<?> testClass)
    Find the first field in the class annotated with the Managed annotation.
    java.lang.String getDriver()  
    java.lang.String getName()  
    java.lang.String getOptions()  
    static boolean hasManagedWebdriverField​(java.lang.Class<?> testClass)  
    boolean isUniqueSession()  
    void setValue​(java.lang.Object testCase, org.openqa.selenium.WebDriver manageDriver)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • findFirstAnnotatedField

      public static ManagedWebDriverAnnotatedField findFirstAnnotatedField​(java.lang.Class<?> testClass)
      Find the first field in the class annotated with the Managed annotation.
    • hasManagedWebdriverField

      public static boolean hasManagedWebdriverField​(java.lang.Class<?> testClass)
    • setValue

      public void setValue​(java.lang.Object testCase, org.openqa.selenium.WebDriver manageDriver)
    • isUniqueSession

      public boolean isUniqueSession()
    • getDriver

      public java.lang.String getDriver()
    • getOptions

      public java.lang.String getOptions()
    • getName

      public java.lang.String getName()