Annotation Type 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 ElementsModifier and TypeOptional ElementDescriptionThe 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 actorThe value is the name of the actorSpecify driver options (used in conjuntion with the driver attribute)booleanSet this attribute to true if you DO NOT want a web driver instance assigned automatically to this actor.
-
Element Details
-
name
-
description
String descriptionThe description of the actor, which will appear alongside the actor name in the Cast section of the reports.- Default:
""
-
browserField
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
-
options
-