Open aliu145 opened 6 years ago
Please post your config...
Config posted, thanks!
Can you confirm your script files are actually found — also if you change to puppeteer (which is recommended) you need to use puppeteer compatible scripts. (Check the puppeteer script directory for templates)
Hi, yes. Sorry to give more information, my script files are running, and my own custom onReady scripts run as well, but the params used in clickAndHoverHelper
do not work, and also I see in onReady.js
it has this code:
module.exports = async (page, scenario, vp) => {
console.log('SCENARIO > ' + scenario.label);
await require('./clickAndHoverHelper')(page, scenario);
but I'm not seeing that logging in my console (i.e. the SCENARIO > scenario.label
part)
I think you just need to look at each file in your scripting flow -- add break points and console logs until you find the point where your the ./clickAndHoverHelper is not getting called. You can use a clean backstop implementation (via backstop init
) on your machine somewhere as a template. Good luck.
After changing the engine on our configuration file from chromy to puppeteer, it doesn't seem like the engine_scripts files are running i.e. onReady and clickAndHoverHelper (the console.log in these files are never printed, and clickSelector, hoverSelector etc don't result in the expected actions). Any ideas why this may be?