Skip to main content

externalTakeScreenshot

Instructs an actor who has the ability to BrowseTheWeb to take a screenshot and emit an artifact, which can then be persisted by ArtifactArchiver and reported by Serenity BDD reporter.

Taking a screenshot

import { actorCalled } from '@serenity-js/core';
import { Navigate, TakeScreenshot } from '@serenity-js/protractor';

await actorCalled('Tania')
.attemptsTo(
Navigate.to('/app'),
TakeScreenshot.of('my app'),
)

Learn more

Hierarchy

Index

Methods

staticexternalof

externalinstantiationLocation

  • instantiationLocation(): FileSystemLocation
  • Returns the location where this Activity was instantiated.


    Returns FileSystemLocation

externaldescribedBy

  • Resolves the description of this object in the context of the provided actor.


    Parameters

    Returns Promise<string>

externaltoString

  • toString(): string
  • Returns a human-readable description of this object.


    Returns string

externalperformAs