@auxcode/auxta 1.3.51-beta.10 → 1.3.51-beta.11

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.
@@ -148,22 +148,21 @@ class AuxGoogleAuth {
148
148
  const context = yield puppeteer_1.default.defaultPage.browser().createIncognitoBrowserContext();
149
149
  const page = yield context.newPage();
150
150
  yield page.goto(authUrl);
151
- yield page.waitForNetworkIdle();
152
151
  yield code_helper_1.default.waitForSelector('visible', '#identifierId', config_1.config.timeout, page);
153
152
  yield ((_a = (yield page.$('#identifierId'))) === null || _a === void 0 ? void 0 : _a.type(EMAIL));
154
153
  yield (yield page.$$('button'))[3].click();
155
- yield page.waitForNetworkIdle();
154
+ yield code_helper_1.default.timeout(3000);
156
155
  yield code_helper_1.default.waitForSelector('visible', 'input[type="password"]', config_1.config.timeout, page);
157
156
  yield ((_b = (yield page.$('input[type="password"]'))) === null || _b === void 0 ? void 0 : _b.type(PASSWORD));
158
157
  yield (yield page.$$('button'))[1].click();
159
- yield page.waitForNetworkIdle();
158
+ yield code_helper_1.default.timeout(3000);
160
159
  yield code_helper_1.default.waitForSelector('visible', '#headingText', config_1.config.timeout, page);
161
160
  yield (yield page.$$('button'))[2].click();
162
- yield page.waitForNetworkIdle();
161
+ yield code_helper_1.default.timeout(3000);
163
162
  yield code_helper_1.default.waitForSelector('visible', 'input[type="checkbox"]', config_1.config.timeout, page);
164
163
  yield ((_c = (yield page.$('input[type="checkbox"]'))) === null || _c === void 0 ? void 0 : _c.click());
165
164
  yield (yield page.$$('button'))[2].click();
166
- yield page.waitForNetworkIdle();
165
+ yield code_helper_1.default.timeout(3000);
167
166
  const currentUrl = page.url();
168
167
  const code = currentUrl.substring(currentUrl.indexOf("code=") + 5, currentUrl.lastIndexOf("&"));
169
168
  return decodeURIComponent(code);
@@ -142,22 +142,21 @@ export class AuxGoogleAuth {
142
142
  const context = yield puppeteer.defaultPage.browser().createIncognitoBrowserContext();
143
143
  const page = yield context.newPage();
144
144
  yield page.goto(authUrl);
145
- yield page.waitForNetworkIdle();
146
145
  yield FunctionHelper.waitForSelector('visible', '#identifierId', config.timeout, page);
147
146
  yield ((_a = (yield page.$('#identifierId'))) === null || _a === void 0 ? void 0 : _a.type(EMAIL));
148
147
  yield (yield page.$$('button'))[3].click();
149
- yield page.waitForNetworkIdle();
148
+ yield FunctionHelper.timeout(3000);
150
149
  yield FunctionHelper.waitForSelector('visible', 'input[type="password"]', config.timeout, page);
151
150
  yield ((_b = (yield page.$('input[type="password"]'))) === null || _b === void 0 ? void 0 : _b.type(PASSWORD));
152
151
  yield (yield page.$$('button'))[1].click();
153
- yield page.waitForNetworkIdle();
152
+ yield FunctionHelper.timeout(3000);
154
153
  yield FunctionHelper.waitForSelector('visible', '#headingText', config.timeout, page);
155
154
  yield (yield page.$$('button'))[2].click();
156
- yield page.waitForNetworkIdle();
155
+ yield FunctionHelper.timeout(3000);
157
156
  yield FunctionHelper.waitForSelector('visible', 'input[type="checkbox"]', config.timeout, page);
158
157
  yield ((_c = (yield page.$('input[type="checkbox"]'))) === null || _c === void 0 ? void 0 : _c.click());
159
158
  yield (yield page.$$('button'))[2].click();
160
- yield page.waitForNetworkIdle();
159
+ yield FunctionHelper.timeout(3000);
161
160
  const currentUrl = page.url();
162
161
  const code = currentUrl.substring(currentUrl.indexOf("code=") + 5, currentUrl.lastIndexOf("&"));
163
162
  return decodeURIComponent(code);