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.StringbrowserFieldThe name of the @Managed-annotated WebDriver field This can be used if there are more than one @Managed driver in a test.java.lang.StringdescriptionThe description of the actor, which will appear alongside the actor name in the Cast section of the reports.java.lang.StringdriverOverride the driver used for this actorjava.lang.StringnameThe value is the name of the actorjava.lang.StringoptionsSpecify driver options (used in conjuntion with the driver attribute)booleanwithAssignedBrowserSet this attribute to true if you DO NOT want a web driver instance assigned automatically to this actor.
-
Element Details
-
name
java.lang.String nameThe value is the name of the actor- Default:
- ""
-
description
java.lang.String descriptionThe description of the actor, which will appear alongside the actor name in the Cast section of the reports.- Default:
- ""
-
browserField
java.lang.String browserFieldThe 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 withAssignedBrowserSet this attribute to true if you DO NOT want a web driver instance assigned automatically to this actor.- Default:
- true
-
driver
java.lang.String driverOverride the driver used for this actor- Default:
- ""
-
options
java.lang.String optionsSpecify driver options (used in conjuntion with the driver attribute)- Default:
- ""
-