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
    The name of the @Managed-annotated WebDriver field This can be used if there are more than one @Managed driver in a test.
    The description of the actor, which will appear alongside the actor name in the Cast section of the reports.
    Override the driver used for this actor
    The value is the name of the actor
    Specify driver options (used in conjuntion with the driver attribute)
    boolean
    Set this attribute to true if you DO NOT want a web driver instance assigned automatically to this actor.
  • Element Details

    • name

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

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

      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

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

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