@auxcode/auxta 1.3.32 → 1.3.33
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.
|
@@ -20,7 +20,6 @@ function captureScreenshot() {
|
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
21
|
try {
|
|
22
22
|
const pages = yield puppeteer_1.default.defaultPage.browser().pages();
|
|
23
|
-
console.log(pages);
|
|
24
23
|
console.log(pages.length);
|
|
25
24
|
if (!pages.length)
|
|
26
25
|
return undefined;
|
|
@@ -29,13 +28,13 @@ function captureScreenshot() {
|
|
|
29
28
|
fullPage: true,
|
|
30
29
|
encoding: 'binary'
|
|
31
30
|
});
|
|
31
|
+
console.log('screenshotBuffer');
|
|
32
32
|
console.log(screenshotBuffer);
|
|
33
33
|
if (Buffer.isBuffer(screenshotBuffer))
|
|
34
34
|
return screenshotBuffer;
|
|
35
35
|
}
|
|
36
36
|
catch (e) {
|
|
37
37
|
const pages = yield puppeteer_1.default.defaultPage.browser().pages();
|
|
38
|
-
console.log(pages);
|
|
39
38
|
console.log(pages.length);
|
|
40
39
|
console.log(e);
|
|
41
40
|
log_service_1.default.push('When', e.toString(), status_of_step_1.default.FAILED);
|
|
@@ -14,7 +14,6 @@ export function captureScreenshot() {
|
|
|
14
14
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15
15
|
try {
|
|
16
16
|
const pages = yield puppeteer.defaultPage.browser().pages();
|
|
17
|
-
console.log(pages);
|
|
18
17
|
console.log(pages.length);
|
|
19
18
|
if (!pages.length)
|
|
20
19
|
return undefined;
|
|
@@ -23,13 +22,13 @@ export function captureScreenshot() {
|
|
|
23
22
|
fullPage: true,
|
|
24
23
|
encoding: 'binary'
|
|
25
24
|
});
|
|
25
|
+
console.log('screenshotBuffer');
|
|
26
26
|
console.log(screenshotBuffer);
|
|
27
27
|
if (Buffer.isBuffer(screenshotBuffer))
|
|
28
28
|
return screenshotBuffer;
|
|
29
29
|
}
|
|
30
30
|
catch (e) {
|
|
31
31
|
const pages = yield puppeteer.defaultPage.browser().pages();
|
|
32
|
-
console.log(pages);
|
|
33
32
|
console.log(pages.length);
|
|
34
33
|
console.log(e);
|
|
35
34
|
log.push('When', e.toString(), StatusOfStep.FAILED);
|