import { Question } from '@serenity-js/core'; import { BrowseTheWeb } from '../abilities'; export class Website { static title(): Question> { return Question.about(`the title of the current page`, actor => BrowseTheWeb.as(actor).getTitle(), ); } static url(): Question> { return Question.about(`the url of the current page`, actor => BrowseTheWeb.as(actor).getCurrentUrl(), ); } }