import { Frame , Page } from 'playwright' ; export interface NavigationOptions { type { number } memberof timeout : number ; } export const defaultNavigationOptions = { timeout : 30000 , } ; export async function navigateTo ( url , options , page ) { if ( page ) { await page . goto ( url , options ) ; return ; } throw new Error ( `Cannot navigate to '${ url }' because no browser has been launched` ) ; }