@auxcode/auxta 1.3.51-beta.8 → 1.3.51-beta.9
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.
|
@@ -13,6 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.AuxGoogleAuth = void 0;
|
|
16
|
+
const config_1 = require("../../auxta/configs/config");
|
|
16
17
|
const fs = require('fs');
|
|
17
18
|
const readline = require('readline');
|
|
18
19
|
const puppeteer_1 = __importDefault(require("../../puppeteer/puppeteer"));
|
|
@@ -148,18 +149,18 @@ class AuxGoogleAuth {
|
|
|
148
149
|
const page = yield context.newPage();
|
|
149
150
|
yield page.goto(authUrl);
|
|
150
151
|
yield page.waitForNetworkIdle();
|
|
151
|
-
yield code_helper_1.default.waitForSelector('visible', '#identifierId');
|
|
152
|
+
yield code_helper_1.default.waitForSelector('visible', '#identifierId', config_1.config.timeout, page);
|
|
152
153
|
yield ((_a = (yield page.$('#identifierId'))) === null || _a === void 0 ? void 0 : _a.type(EMAIL));
|
|
153
154
|
yield (yield page.$$('button'))[3].click();
|
|
154
155
|
yield page.waitForNetworkIdle();
|
|
155
|
-
yield code_helper_1.default.waitForSelector('visible', 'input[type="password"]');
|
|
156
|
+
yield code_helper_1.default.waitForSelector('visible', 'input[type="password"]', config_1.config.timeout, page);
|
|
156
157
|
yield ((_b = (yield page.$('input[type="password"]'))) === null || _b === void 0 ? void 0 : _b.type(PASSWORD));
|
|
157
158
|
yield (yield page.$$('button'))[1].click();
|
|
158
159
|
yield page.waitForNetworkIdle();
|
|
159
|
-
yield code_helper_1.default.waitForSelector('visible', '#headingText');
|
|
160
|
+
yield code_helper_1.default.waitForSelector('visible', '#headingText', config_1.config.timeout, page);
|
|
160
161
|
yield (yield page.$$('button'))[2].click();
|
|
161
162
|
yield page.waitForNetworkIdle();
|
|
162
|
-
yield code_helper_1.default.waitForSelector('visible', 'input[type="checkbox"]');
|
|
163
|
+
yield code_helper_1.default.waitForSelector('visible', 'input[type="checkbox"]', config_1.config.timeout, page);
|
|
163
164
|
yield ((_c = (yield page.$('input[type="checkbox"]'))) === null || _c === void 0 ? void 0 : _c.click());
|
|
164
165
|
yield (yield page.$$('button'))[2].click();
|
|
165
166
|
yield page.waitForNetworkIdle();
|
|
@@ -7,6 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
+
import { config } from "../../auxta/configs/config";
|
|
10
11
|
const fs = require('fs');
|
|
11
12
|
const readline = require('readline');
|
|
12
13
|
import puppeteer from "../../puppeteer/puppeteer";
|
|
@@ -142,18 +143,18 @@ export class AuxGoogleAuth {
|
|
|
142
143
|
const page = yield context.newPage();
|
|
143
144
|
yield page.goto(authUrl);
|
|
144
145
|
yield page.waitForNetworkIdle();
|
|
145
|
-
yield FunctionHelper.waitForSelector('visible', '#identifierId');
|
|
146
|
+
yield FunctionHelper.waitForSelector('visible', '#identifierId', config.timeout, page);
|
|
146
147
|
yield ((_a = (yield page.$('#identifierId'))) === null || _a === void 0 ? void 0 : _a.type(EMAIL));
|
|
147
148
|
yield (yield page.$$('button'))[3].click();
|
|
148
149
|
yield page.waitForNetworkIdle();
|
|
149
|
-
yield FunctionHelper.waitForSelector('visible', 'input[type="password"]');
|
|
150
|
+
yield FunctionHelper.waitForSelector('visible', 'input[type="password"]', config.timeout, page);
|
|
150
151
|
yield ((_b = (yield page.$('input[type="password"]'))) === null || _b === void 0 ? void 0 : _b.type(PASSWORD));
|
|
151
152
|
yield (yield page.$$('button'))[1].click();
|
|
152
153
|
yield page.waitForNetworkIdle();
|
|
153
|
-
yield FunctionHelper.waitForSelector('visible', '#headingText');
|
|
154
|
+
yield FunctionHelper.waitForSelector('visible', '#headingText', config.timeout, page);
|
|
154
155
|
yield (yield page.$$('button'))[2].click();
|
|
155
156
|
yield page.waitForNetworkIdle();
|
|
156
|
-
yield FunctionHelper.waitForSelector('visible', 'input[type="checkbox"]');
|
|
157
|
+
yield FunctionHelper.waitForSelector('visible', 'input[type="checkbox"]', config.timeout, page);
|
|
157
158
|
yield ((_c = (yield page.$('input[type="checkbox"]'))) === null || _c === void 0 ? void 0 : _c.click());
|
|
158
159
|
yield (yield page.$$('button'))[2].click();
|
|
159
160
|
yield page.waitForNetworkIdle();
|