Skip to content

BrowserModule::Screenshots

jfinkhaeuser edited this page Dec 17, 2014 · 1 revision

BrowserModule::Screenshots

Wraps Watir's ability to take screenshots of a browser window, by providing a standard scheme for naming the screenshots.

The function for taking screenshots is named take_screenshot.

In addition to taking the screenshot, the annotation module is used to store the screenshot file name in the test report.

Configuration

The module is influenced by the following configuration options:

  • screenshot_dir - the directory in which screenshots are saved.
  • screenshot_scheme - the naming scheme for the screenshot files. Currently supported are old and new, but both the configuration option and the old naming scheme will be phased out soon. Suffice to say that both schemes include the scenario name in filesystem safe form and a timestamp.