Giter Club home page Giter Club logo

Comments (5)

Droogans avatar Droogans commented on June 23, 2024

You have to have Cairo installed for image comparison in node. I've looked for one-off solutions written in pure javascript and it looks like they don't exist.

If you try to install Cairo on Mac, take a look at Homebrew/legacy-homebrew#14123 (comment) in case you get some pathing issues from brew.

For using resemble in node, see https://github.com/kpdecker/node-resemble.

from resemble.js.

jamescryer avatar jamescryer commented on June 23, 2024

ResembleJS is for "In-browser" image comparison, but that's not to say it can't be tweaked for NodeJS. https://github.com/kpdecker/node-resemble Looks like it might be a good solution for your needs.

Let us know if you get something working.

from resemble.js.

iam404 avatar iam404 commented on June 23, 2024

@jamescryer @Droogans
Thanks for the link and informations.
node-resemble seems to be working fine .

Though not an issue But i need to eliminate some dynamic elements from comparison .Is it possible in resemble js to eliminate dynamic parts that changes often from baseline image .
like: https://github.com/webdriverio/webdrivercss

from resemble.js.

jamescryer avatar jamescryer commented on June 23, 2024

Resemble just does image comparison. Presumably you need to use NightwatchJS functionality to hide the dynamic UI before taking the screenshot for comparison.

from resemble.js.

Droogans avatar Droogans commented on June 23, 2024

That's not necessarily true. There's https://github.com/EyalAr/lwip/, which would do this after you take a screenshot! @iam404 I'm working on a library that uses Protractor and Mocha that will be able to support that soon.

Depending on your tooling, you may be able to use it. Admittedly, it's a fairly specific toolset to solve a pretty specific problem for myself. If you can't use it, at least you'll have source code that you can use for your own project.

Here's the project: https://github.com/rackerlabs/snappit-mocha-protractor

from resemble.js.

Related Issues (20)

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.