import { Page } from 'playwright' ; const isCI = require ( 'is-ci' ) as boolean ; export async function pause ( page ) { if ( ! page ) { throw new Error ( `Cannot pause because no browser has been launched` ) ; } if ( ! page . pause ) { console . warn ( 'page.pause() method only exists in playwright version 1.9.0' ) ; return ; } if ( isCI ) { console . warn ( 'page.pause() method is ignored on CI' ) ; return ; } await page . pause ( ) ; }