externalabstractActivity
Hierarchy
- Describable
- Activity
Index
Constructors
Methods
Constructors
externalconstructor
Parameters
externaldescription: Answerable<string>
externallocation: FileSystemLocation = ...
Returns Activity
Methods
staticexternal[hasInstance]
Custom
instanceofcheck that recognises activities created by another copy of@serenity-js/core.This addresses the dual-package hazard, where the same class loaded from both the CJS and ESM builds results in two distinct constructor functions. For example,
Navigateloaded viarequire('@serenity-js/web')extends the CJSInteraction, while the actor performing it might have been created by the ESM build.Checks against
Activity,InteractionandTaskmatch any instance whose prototype chain contains a class with the same brand. Checks against any other subclasses retain the nativeinstanceofsemantics.Parameters
externalinstance: unknown
Returns boolean
externalinstantiationLocation
Returns the location where this
Activitywas instantiated.Returns FileSystemLocation
externalabstractperformAs
Parameters
externalactor: UsesAbilities | AnswersQuestions | PerformsActivities
Returns Promise<any>
externaldescribedBy
Resolves the description of this object in the context of the provided
actor.Parameters
externalactor: AnswersQuestions & UsesAbilities & HasName
Returns Promise<string>
externaltoString
Returns a human-readable description of this object.
Returns string
Activities represents tasks and interactions to be performed by an actor.
Learn more about:
ActorPerformsActivities