Annotation Type CastMember


@Retention(RUNTIME)
@Target(FIELD)
public @interface CastMember
We use this annotation to inject an actor into a test. If the test has a @Managed driver, the actor will have the ability to interact with this driver. If there are more than one @Managed driver fields in the test, we can use the browserField attribute to assign one of them to this actor. If there are no @Managed driver fields, the actor will be assigned a unique driver automatically.
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    java.lang.String browserField
    The name of the @Managed-annotated WebDriver field This can be used if there are more than one @Managed driver in a test.
    java.lang.String description
    The description of the actor, which will appear alongside the actor name in the Cast section of the reports.
    java.lang.String driver
    Override the driver used for this actor
    java.lang.String name
    The value is the name of the actor
    java.lang.String options
    Specify driver options (used in conjuntion with the driver attribute)
    boolean withAssignedBrowser
    Set this attribute to true if you DO NOT want a web driver instance assigned automatically to this actor.
  • Element Details

    • name

      java.lang.String name
      The value is the name of the actor
      Default:
      ""
    • description

      java.lang.String description
      The description of the actor, which will appear alongside the actor name in the Cast section of the reports.
      Default:
      ""
    • browserField

      java.lang.String browserField
      The name of the @Managed-annotated WebDriver field This can be used if there are more than one @Managed driver in a test. If you don't specify this value, a browser will be assigned automatically unless you opt-out entirely by setting the withAssignedBrowser attribute to false.
      Default:
      ""
    • withAssignedBrowser

      boolean withAssignedBrowser
      Set this attribute to true if you DO NOT want a web driver instance assigned automatically to this actor.
      Default:
      true
    • driver

      java.lang.String driver
      Override the driver used for this actor
      Default:
      ""
    • options

      java.lang.String options
      Specify driver options (used in conjuntion with the driver attribute)
      Default:
      ""