Get the default page (first browsing context).
()
| 52 | |
| 53 | /** Get the default page (first browsing context). */ |
| 54 | async page(): Promise<Page> { |
| 55 | const result = await this.client.send<{ context: string; userContext: string }>('vibium:browser.page', {}); |
| 56 | return new Page(this.client, result.context, result.userContext); |
| 57 | } |
| 58 | |
| 59 | /** Create a new page (tab) in the default context. */ |
| 60 | async newPage(): Promise<Page> { |
no outgoing calls