From 0b02315900f2d43c5a4d6a176b39882eb137bd5e Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Fri, 10 Apr 2020 17:48:24 +0200 Subject: [PATCH] Allow to access page from client --- src/api/whatsapp.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/api/whatsapp.ts b/src/api/whatsapp.ts index 3295aaf1..a8449ba2 100644 --- a/src/api/whatsapp.ts +++ b/src/api/whatsapp.ts @@ -12,6 +12,14 @@ export class Whatsapp extends ControlsLayer { super(page); } + /** + * Get the puppeteer page instance + * @returns The Whatsapp page + */ + get waPage(): Page { + return this.page; + } + /** * Clicks on 'use here' button (When it get unlaunched) * This method tracks the class of the button