capture-website
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -158,2 +158,6 @@ 'use strict'; | ||
if (options.clickElement) { | ||
await page.click(options.clickElement); | ||
} | ||
const getInjectKey = (ext, value) => isUrl(value) ? 'url' : value.endsWith(`.${ext}`) ? 'path' : 'content'; | ||
@@ -160,0 +164,0 @@ |
{ | ||
"name": "capture-website", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Capture screenshots of websites", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -201,2 +201,8 @@ # capture-website [![Build Status](https://travis-ci.com/sindresorhus/capture-website.svg?branch=master)](https://travis-ci.com/sindresorhus/capture-website) | ||
##### clickElement | ||
Type: `string` | ||
Click the DOM element matching the given [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors). | ||
##### modules | ||
@@ -203,0 +209,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19065
186
431