@auxcode/auxta 0.5.1 → 0.5.2

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.1",
3
+ "version": "0.5.2",
4
4
  "description": "",
5
5
  "main": "src/AuxTA.ts",
6
6
  "scripts": {
@@ -162,7 +162,7 @@ export class FunctionHelper {
162
162
  await page.keyboard.press('Enter');
163
163
  }
164
164
 
165
- public async waitForPageToBeCreated(selector: string,page = puppeteer.defaultPage) {
165
+ public async clickAndWaitForPageToBeCreated(selector: string,page = puppeteer.defaultPage) {
166
166
  const nav = new Promise(res => page.browser().on('targetcreated', res));
167
167
  await this.click(selector);
168
168
  await nav;