@auxcode/auxta 0.5.2 → 0.5.3
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
|
@@ -168,6 +168,11 @@ export class FunctionHelper {
|
|
|
168
168
|
await nav;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
public async closeLastPage(page = puppeteer.defaultPage) {
|
|
172
|
+
const pages = await page.browser().pages();
|
|
173
|
+
await pages[pages.length - 1].close();
|
|
174
|
+
}
|
|
175
|
+
|
|
171
176
|
//TODO work in progress
|
|
172
177
|
/*
|
|
173
178
|
private async microsoftLogin(button: string, email: string, password: string) {
|