BackstopJS: Casper JS click fails screencapture
Hello,
My casper script is a simple click and it causes the screen capture to mess up.
Here is my JSON file (you can test it yourself)
{
"viewports": [
{
"name": "tablet_h",
"width": 1024,
"height": 768
}
],
"scenarios": [
{
"label": "Tous les boutons",
"url": "http://s.codepen.io/stephendesjardins/debug/BLLPmK",
"referenceUrl": "http://s.codepen.io/stephendesjardins/debug/BLLPmK",
"selectors": [
"#boutons"
],
"misMatchThreshold" : 1
},
{
"label": "Bouton divisé",
"url": "http://s.codepen.io/stephendesjardins/debug/BLLPmK",
"referenceUrl": "http://s.codepen.io/stephendesjardins/debug/BLLPmK",
"selectors": [
".dropdown-divise"
],
"misMatchThreshold" : 1,
"onReadyScript": "button-interaction.js"
}
],
"paths": {
"bitmaps_reference": "../../backstop_data/bitmaps_reference",
"bitmaps_test": "../../backstop_data/bitmaps_test",
"compare_data": "../../backstop_data/bitmaps_test/compare.json",
"casper_scripts": "../../backstop_data/casper_scripts"
},
"engine": "phantomjs",
"report": ["browser", "CLI"],
"debug": false,
"port": 3001
}
Casper script :
module.exports = function(casper, scenario, vp) {
casper.click('.dropdown-divise .dropdown-toggle');
casper.wait(250);
}
Codepen I am using for my test in the json file : http://codepen.io/stephendesjardins/pen/BLLPmK?editors=1000 http://s.codepen.io/stephendesjardins/debug/BLLPmK
Thanks
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 15 (5 by maintainers)
@stephenbe thanks for your kind words and positive energy! Keep up with the bitemogi!
Hi – thanks for letting me know! Very glad it’s working for you. I am not sure there was any fix that I made which would have fixed this. I have not been great about documenting everything always apologies for that!
There is a lot of work happening at the moment however. I am integrating chrome-headless into backstop. And also enabling parallel screen capture. These two changes are making the whole experience much faster and way more stable!
Thanks for the replies @garris. I will give you more details soonish! I appreciate it
Oh okay for the referenceUrl, good to know, thank you! 😃