Skip to content

Abstracted JS files away. Added efficient mode

Compare
Choose a tag to compare
@ChrisBAshton ChrisBAshton released this 01 Dec 15:49
· 181 commits to master since this release

This PR consists of:

  • #330 (Abstract CasperJS/PhantomJS files away)
  • #333 (Prompt user to open gallery)
  • #335 (Enable 'efficient' capture mode)
  • also fixes the spider.yaml example config.

Changes to API:

  • snap_file property is NO LONGER NEEDED - it is abstracted away inside the Wraith gem itself. You can still specify your own snap_file if you wish (it will take precedence), but the default should now be to remove the property altogether and allow Wraith to select its own internal snap file.
  • new resize_or_reload property, with values either 'resize' or 'reload'. Up to version 2.8.1, Wraith uses 'reload' behaviour, i.e. it reloads the browser for every screen width screenshot. For the time being, that is still the default. But those who wish to run much faster Wraith tests can switch to the new 'resize' mode, which resizes the current browser instance to take screenshots, rather than firing up the browser again and again.