take_screenshot: take_screenshot(), Takes screenshots of URLs

Description Usage Arguments Details Value Examples

View source: R/web-take_screenshot.R

Description

Takes screenshots of all URLs passed to the function arguments and saves them in a new folder screenshots in the working directory. The filename is the url modified by the function link{url_to_filename}.

Usage

1
take_screenshot(urls = "http://www.google.de", width = 1000)

Arguments

width

a numeric; width of screenshots in pixel. The width must be the width of the browser viewport during the experiment!

URLs

a character vector; URLs must be full qualified containing schema (http or https)

Details

To get precise heatmaps with the function link{plot_brownie} it is indispensable to set the width of the screenshots right. It's recommended to evalualte the max.pos in the data before taking screenshots. Moreover, when executing the funciton link{plot_brownie} will use the files saved in the folder screenshots.

Value

vector of screenshot file names that where taken and saved in ./screenshots/

Examples

1
take_screenshot(c("https://www.visualvest.de/", "https://www.visualvest.de/angebot/", "https://www.visualvest.de/team/"), width = 1000)

Fiddleman/BrownieR documentation built on May 6, 2019, 4:36 p.m.