Git Product home page Git Product logo

watircats's Introduction

WatirCats

Gem Version

WatirCats uses Watir-Webdriver to grab screenshots of pages at multiple widths. It also grabs and parses a site's sitemap, assuming the site map is hosted at the site_root/sitemap.xml.

Using the compare, ImageMagick is used to see if the images have differences. If they do, you'll get a visual diff in the output folder.

Some of the features:

  • Responsive Screenshots
  • Multiple sources for URLs, but most rely on /sitemap.xml for use
  • Multiple Browsing engines. Chrome, Firefox, FirefoxESR, and support for IE
  • Proxy and custom binary path support for Firefox

Requirements

  • ImageMagick
  • Ruby 1.9.3 or greater
  • Firefox

Installation

gem install watircats

or

  • Checkout this repository
  • bundle install
  • gem build watircats.gemspec
  • gem install watircats-0.2.5.gem

Usage

  • Compare And Take Screenshots:
  • watircats compare http://my.example.com http://my-other.example.com
  • Compare two folders of screenshots:
  • watircats folders folder_a folder_b
  • Take screenshots at several widths:
  • watircats screenshots http://my.example.com --widths 1024 800 320

Configuration

Configuration can be done at the command line or via a config file. See 'sample_config.yml' for the available parameters.

Specify a config file at runtime with --config_file my_config_file.yml

If you want to add functionality to this project, pull requests are welcome.

  • Create a branch based off master and do all of your changes with in it.
  • If it you have to pause to add a 'and' anywhere in the title, it should be two pull requests.
  • Make commits of logical units and describe them properly
  • Check for unnecessary whitespace with git diff --check before committing.
  • If possible, submit tests to your patch / new feature so it can be tested easily.
  • Assure nothing is broken by running all the test
  • Please ensure that it complies with coding standards.

Please raise any issues with this project as a GitHub issue.

License

WatirCats is available to everyone under the terms of the MIT open source license. Take a look at the LICENSE file in the code.

Credits

watircats's People

Contributors

sonjaq avatar wallheater avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.