@auxcode/auxta 1.3.118 → 1.3.119
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.
|
@@ -31,7 +31,7 @@ function captureScreenshot() {
|
|
|
31
31
|
while (count <= RETRY_NUMBERS) {
|
|
32
32
|
try {
|
|
33
33
|
const lastPage = pages[pages.length - 1] || puppeteer_1.default.defaultPage;
|
|
34
|
-
log_service_1.default.push('When', log_service_1.default.tag, `Just before retry ${count}`, status_of_step_1.default.PASSED);
|
|
34
|
+
log_service_1.default.push('When', log_service_1.default.tag, `Just before retry ${count}. Pages: ${pages.length}`, status_of_step_1.default.PASSED);
|
|
35
35
|
const screenshotBuffer = yield lastPage.screenshot({
|
|
36
36
|
captureBeyondViewport: false,
|
|
37
37
|
encoding: 'binary'
|
|
@@ -172,7 +172,7 @@ class FunctionHelper extends extend_default_page_1.ExtendDefaultPage {
|
|
|
172
172
|
const url = page.url();
|
|
173
173
|
let message = `I am on the ${selector} page`;
|
|
174
174
|
if (!url.includes(selector)) {
|
|
175
|
-
log_service_1.default.push('And', log_service_1.default.tag, message
|
|
175
|
+
log_service_1.default.push('And', log_service_1.default.tag, `${message}. URL: ${url}`, status_of_step_1.StatusOfStep.FAILED);
|
|
176
176
|
throw new Error(message);
|
|
177
177
|
}
|
|
178
178
|
log_service_1.default.push('And', log_service_1.default.tag, message, status_of_step_1.StatusOfStep.PASSED);
|
|
@@ -57,7 +57,6 @@ class Puppeteer {
|
|
|
57
57
|
executablePath: puppeteer.default.executablePath(),
|
|
58
58
|
args,
|
|
59
59
|
env,
|
|
60
|
-
protocolTimeout: 360000,
|
|
61
60
|
ignoreDefaultArgs: ["--enable-automation"],
|
|
62
61
|
defaultViewport: process.env.ENVIRONMENT === 'LOCAL' ? null : {
|
|
63
62
|
width: config_1.config.screenWidth,
|