capture-website
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -65,2 +65,4 @@ 'use strict'; | ||
const timeoutInSeconds = options.timeout * 1000; | ||
const viewportOptions = { | ||
@@ -127,3 +129,3 @@ width: options.width, | ||
await page.goto(finalUrl, { | ||
timeout: options.timeout * 1000, | ||
timeout: timeoutInSeconds, | ||
waitUntil: 'networkidle2' | ||
@@ -170,3 +172,3 @@ }); | ||
visible: true, | ||
timeout: options.timeout | ||
timeout: timeoutInSeconds | ||
}); | ||
@@ -178,3 +180,3 @@ } | ||
visible: true, | ||
timeout: options.timeout | ||
timeout: timeoutInSeconds | ||
}); | ||
@@ -181,0 +183,0 @@ screenshotOptions.clip = await page.$eval(options.element, getBoundingClientRect); |
{ | ||
"name": "capture-website", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Capture screenshots of websites", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
17542
166