UNPKG

grunt-html-dom-snapshot

Version:

Takes snapshots of the HTML markup on web pages - their immediate DOM content - and screenshots of their viewport - how they look like.

14 lines (11 loc) 265 B
'use strict' module.exports = { detect: function (command) { return !!command.url }, perform: function (grunt, target, client, command) { const url = command.url grunt.log.ok('Navigate to "' + url + '".') return client.navigateTo(url) } }