@auxcode/auxta 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auxcode/auxta",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "",
5
5
  "main": "src/AuxTA.ts",
6
6
  "scripts": {
@@ -162,6 +162,12 @@ export class FunctionHelper {
162
162
  await page.keyboard.press('Enter');
163
163
  }
164
164
 
165
+ public async waitForPageToBeCreated(selector: string,page = puppeteer.defaultPage) {
166
+ const nav = new Promise(res => page.browser().on('targetcreated', res));
167
+ await this.click(selector);
168
+ await nav;
169
+ }
170
+
165
171
  //TODO work in progress
166
172
  /*
167
173
  private async microsoftLogin(button: string, email: string, password: string) {