@auxcode/auxta 1.3.78-beta.0 → 1.3.78-beta.101
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.
|
@@ -187,28 +187,30 @@ class AuxGoogleAuth {
|
|
|
187
187
|
yield code_helper_1.default.waitForSelector('visible', '#identifierId', config_1.config.timeout, page, count >= 2);
|
|
188
188
|
yield ((_a = (yield page.$('#identifierId'))) === null || _a === void 0 ? void 0 : _a.type(email));
|
|
189
189
|
yield (yield page.$$('button'))[3].click();
|
|
190
|
-
yield code_helper_1.default.timeout(
|
|
190
|
+
yield code_helper_1.default.timeout(5000);
|
|
191
191
|
yield code_helper_1.default.waitForSelector('visible', 'input[type="password"]', config_1.config.timeout, page, count >= 2);
|
|
192
192
|
yield ((_b = (yield page.$('input[type="password"]'))) === null || _b === void 0 ? void 0 : _b.type(password));
|
|
193
193
|
yield (yield page.$$('button'))[1].click();
|
|
194
|
-
yield code_helper_1.default.timeout(
|
|
194
|
+
yield code_helper_1.default.timeout(5000);
|
|
195
195
|
yield code_helper_1.default.waitForSelector('visible', '#headingText', config_1.config.timeout, page, count >= 2);
|
|
196
|
-
yield code_helper_1.default.timeout(
|
|
196
|
+
yield code_helper_1.default.timeout(5000);
|
|
197
|
+
yield code_helper_1.default.waitForSelector('visible', 'button', config_1.config.timeout, page, count >= 2);
|
|
197
198
|
yield (yield page.$$('button'))[2].click();
|
|
198
|
-
yield code_helper_1.default.timeout(
|
|
199
|
+
yield code_helper_1.default.timeout(5000);
|
|
199
200
|
const checkbox = yield page.$$('input[type="checkbox"]');
|
|
200
201
|
if (checkbox.length > 0) {
|
|
201
202
|
yield code_helper_1.default.waitForSelector('visible', 'input[type="checkbox"]', config_1.config.timeout, page, count >= 2);
|
|
202
|
-
yield code_helper_1.default.timeout(
|
|
203
|
+
yield code_helper_1.default.timeout(5000);
|
|
203
204
|
yield checkbox[0].click();
|
|
204
205
|
yield (yield page.$$('button'))[2].click();
|
|
205
206
|
}
|
|
206
207
|
else {
|
|
207
208
|
yield code_helper_1.default.waitForSelector('visible', `div[data-email="${email.toLocaleLowerCase()}"]`, config_1.config.timeout, page, count >= 2);
|
|
208
|
-
yield code_helper_1.default.timeout(
|
|
209
|
+
yield code_helper_1.default.timeout(5000);
|
|
210
|
+
yield code_helper_1.default.waitForSelector('visible', 'button', config_1.config.timeout, page, count >= 2);
|
|
209
211
|
yield (yield page.$$('button'))[2].click();
|
|
210
212
|
}
|
|
211
|
-
yield code_helper_1.default.timeout(
|
|
213
|
+
yield code_helper_1.default.timeout(5000);
|
|
212
214
|
yield code_helper_1.default.waitForSelector('visible', 'body', config_1.config.timeout, page, count >= 2);
|
|
213
215
|
const currentUrl = page.url();
|
|
214
216
|
const code = currentUrl.substring(currentUrl.indexOf("code=") + 5, currentUrl.lastIndexOf("&"));
|
|
@@ -30,13 +30,11 @@ class Puppeteer {
|
|
|
30
30
|
if (process.env.ENVIRONMENT === 'LOCAL') {
|
|
31
31
|
args.push('--start-maximized');
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
}
|
|
33
|
+
args.push(`--window-size=${config_1.config.screenWidth ? config_1.config.screenWidth : 1920},${config_1.config.screenHeight ? config_1.config.screenHeight : 1080}`);
|
|
34
|
+
args.push("--no-sandbox", "--disable-setuid-sandbox", "--disable-gpu");
|
|
35
|
+
env = {
|
|
36
|
+
DISPLAY: ":10.0"
|
|
37
|
+
};
|
|
40
38
|
this.browser = yield puppeteer.default.launch({
|
|
41
39
|
slowMo: process.env.slowMo ? Number(process.env.slowMo) : 0,
|
|
42
40
|
executablePath: puppeteer.default.executablePath(),
|