Skip to content

Instantly share code, notes, and snippets.

@rodrigojmartin
Created June 14, 2022 08:16
Show Gist options
  • Save rodrigojmartin/77e20c72f706dfaac986b24391b23c0f to your computer and use it in GitHub Desktop.
Save rodrigojmartin/77e20c72f706dfaac986b24391b23c0f to your computer and use it in GitHub Desktop.
import { Actor, Cast } from '@serenity-js/core';
import { BrowseTheWeb } from '@serenity-js/webdriverio';
export class Actors implements Cast {
prepare(actor: Actor): Actor {
return actor.whoCan(
BrowseTheWeb.using(browser),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment