wswebcreation / protractor-image-comparison

npm-module to compare images with protractor
86 stars 38 forks source link

browser.imageComparison is undefined #97

Closed dorley closed 5 years ago

dorley commented 5 years ago

Hi, i'm new to protractor image comparison and i just followed the steps at https://github.com/wswebcreation/protractor-image-comparison to try on it.

However, when executing it give me error "Cannot read property 'checkElement' of undefined which suggest the 'browser.imageComparison' is undefined.

I'm setting up protractor-image-comparison as plugin at conf.js, did i missed anything?

wswebcreation commented 5 years ago

Hi @dorley

Can you please provide all the info that was asked but you removed 😉

NOTE: Be aware of the fact that this module is only a plugin that provides all functionality from webdriver-image-comparison. So please check if this is an issue with this plugin or with webdriver-image-comparison.

Environment (please complete the following information):

Config of protractor + protractor-image-comparison An example of how you configured the protractor-image-comparison

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

[Include code or an example repository that can easily be set up]

Expected behavior A clear and concise description of what you expected to happen.

Log If applicable, add logs to help explain your problem. If you don't have log, enable 'debug:true' in the config and paste the log here. Please use proper markdown to style it

Additional context Add any other context about the problem here.

dorley commented 5 years ago

Sorry that I've accidentally removed the default questions. FYI, I've already fixed the issue.

Initially I setup my project to run at d:/ drive where I installed node.js & protractor at c:/ drive. Then I test running protractor-image-comparison by installing it at d:/drive (through package.json) and it produce the issue stated above. After that I tried to install protractor-image-comparison at c:/ drive and it works fine now. Suspect it's needed to be installed at same drive as where protractor is installed?

Thank you.

wswebcreation commented 5 years ago

Tnx