import { Question } from '@serenity-js/core' ; import { logging } from 'selenium-webdriver' ; import { promiseOf } from '../../promiseOf' ; import { BrowseTheWeb } from '../abilities' ; export class Browser { desc Creates a  Question that reads the entries of the browser log
     *  so that they can be asserted on.
     *
     *  Please note that in order to ensure that the automated test has access to the browser log,
     *  Protractor needs to be configured with the desired logging level, as per the example below.
     *
     *  example example example see https returns { Question < Promise < logging . Entry [ ] > > } static log ( ) { return Question . about < Promise < logging . Entry [ ] > > ( `browser log` , actor => promiseOf ( BrowseTheWeb . as ( actor ) . manage ( ) . logs ( ) . get ( 'browser' ) ) ) ; } }