@auxcode/auxta 1.3.59 → 1.3.60
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.
|
@@ -183,16 +183,15 @@ class AuxGoogleAuth {
|
|
|
183
183
|
yield code_helper_1.default.waitForSelector('visible', '#identifierId', config_1.config.timeout, page);
|
|
184
184
|
yield ((_a = (yield page.$('#identifierId'))) === null || _a === void 0 ? void 0 : _a.type(email));
|
|
185
185
|
yield (yield page.$$('button'))[3].click();
|
|
186
|
-
yield code_helper_1.default.timeout(
|
|
186
|
+
yield code_helper_1.default.timeout(4000);
|
|
187
187
|
yield code_helper_1.default.waitForSelector('visible', 'input[type="password"]', config_1.config.timeout, page);
|
|
188
188
|
yield ((_b = (yield page.$('input[type="password"]'))) === null || _b === void 0 ? void 0 : _b.type(password));
|
|
189
189
|
yield (yield page.$$('button'))[1].click();
|
|
190
|
-
yield code_helper_1.default.timeout(
|
|
190
|
+
yield code_helper_1.default.timeout(4000);
|
|
191
191
|
yield code_helper_1.default.waitForSelector('visible', '#headingText', config_1.config.timeout, page);
|
|
192
192
|
yield (yield page.$$('button'))[2].click();
|
|
193
|
-
yield code_helper_1.default.timeout(
|
|
193
|
+
yield code_helper_1.default.timeout(4000);
|
|
194
194
|
const checkbox = yield page.$$('input[type="checkbox"]');
|
|
195
|
-
yield code_helper_1.default.timeout(3000);
|
|
196
195
|
if (checkbox.length > 0) {
|
|
197
196
|
yield code_helper_1.default.waitForSelector('visible', 'input[type="checkbox"]', config_1.config.timeout, page);
|
|
198
197
|
yield checkbox[0].click();
|
|
@@ -200,10 +199,10 @@ class AuxGoogleAuth {
|
|
|
200
199
|
}
|
|
201
200
|
else {
|
|
202
201
|
yield code_helper_1.default.waitForSelector('visible', `div[data-email="${email.toLocaleLowerCase()}"]`, config_1.config.timeout, page);
|
|
203
|
-
yield code_helper_1.default.timeout(
|
|
202
|
+
yield code_helper_1.default.timeout(4000);
|
|
204
203
|
yield (yield page.$$('button'))[2].click();
|
|
205
204
|
}
|
|
206
|
-
yield code_helper_1.default.timeout(
|
|
205
|
+
yield code_helper_1.default.timeout(4000);
|
|
207
206
|
yield code_helper_1.default.waitForSelector('visible', 'body', config_1.config.timeout, page);
|
|
208
207
|
const currentUrl = page.url();
|
|
209
208
|
const code = currentUrl.substring(currentUrl.indexOf("code=") + 5, currentUrl.lastIndexOf("&"));
|