Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chromy.send() not defined error #82

Open
VladimirPittner opened this issue Oct 25, 2017 · 2 comments
Open

chromy.send() not defined error #82

VladimirPittner opened this issue Oct 25, 2017 · 2 comments

Comments

@VladimirPittner
Copy link

Hi,
I am using Chromy in BackstopJS, and I already made an issue in BackstopJS (garris/BackstopJS#568) and Garris thinks it might be actually Chromy issue so here it is:

I tried to use chromy.send() (for example chromy.send('CSS.disable') ) to call DevTools protocol directly, but I always get this error :

COMMAND | Error: 'send' is not defined on a target object.

Did anyone tried to use the .send()? Did it worked?

Thanks
/V

@dotneet
Copy link
Contributor

dotneet commented Oct 25, 2017

Hi @VladimirPittner,
Please tell me chromy version.
and, could you make a minimal reproduce sample?

@VladimirPittner
Copy link
Author

Hi @dotneet,
sorry for late response.
So I did simple test just now with clean BackstopJS 3.0.32 and Chromy 0.5.5 install.
I used the files provided in BackstopJS to make minimal sample, so I just added this lines to backstop_data\engine_scripts\chromy\onReady.js :

module.exports = function (chromy, scenario, vp) {
  console.log('CHROMY SEND TEST');
  chromy.send('CSS.disable');
};

This should probably disable the CSS before taking screenshot but it does not.

It is possible that I totally misunderstood the way how .send() should be used, in that case could you please provide little demo explanation how to use it correctly?

Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants