ag-awsauth 0.0.275 → 0.0.276
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/dist/helpers/browser.js +17 -1
- package/package.json +1 -1
package/dist/helpers/browser.js
CHANGED
|
@@ -168,7 +168,23 @@ function getMFA(p) {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
try {
|
|
171
|
-
(0, log_1.info)('
|
|
171
|
+
(0, log_1.info)('accept-user-code');
|
|
172
|
+
const messageDiv = yield page.waitForSelector('[data-analytics="accept-user-code"]', {
|
|
173
|
+
timeout: config_1.timeoutShortMs,
|
|
174
|
+
});
|
|
175
|
+
if (messageDiv) {
|
|
176
|
+
(0, log_1.info)('click access prompt');
|
|
177
|
+
yield messageDiv.click();
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
throw new Error('access prompt not found');
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
catch (e) {
|
|
184
|
+
//
|
|
185
|
+
}
|
|
186
|
+
try {
|
|
187
|
+
(0, log_1.info)('allow-access-button');
|
|
172
188
|
const messageDiv = yield page.waitForSelector('[data-testid="allow-access-button"]', {
|
|
173
189
|
timeout: config_1.timeoutShortMs,
|
|
174
190
|
});
|