BackstopJS icon indicating copy to clipboard operation
BackstopJS copied to clipboard

Issue: about a backstop.json file

Open autotest-web opened this issue 1 year ago • 2 comments

We are unable to capture the screenshot as per the selectors, and after the login page, it is not capturing the screenshot Here we passed the correct cookies path also but it captured only the login home page screenshot after login to app it is not capturing the screenshot

{ "id": "automation", "viewports": [ { "name": "desktop", "width": 1024, "height": 768 } ],

"scenarios": [ { "label": "login", "cookiePath": "backstop_data/engine_scripts/cookies.json", "url": "https://dewdrops-rp.zycus.com", "selectors": ["document","dewdrops-home-left-panel"], "misMatchThreshold": 0.1, "delay": 60000, "readySelector": "", "selectorExpansion": true, "requireSameDimensions": true, "onReadyScript": "puppet/onReadyLogin.js" }, { "label": "home", "cookiePath": "backstop_data/engine_scripts/cookies.json", "url": "https://dewdrops-rp.zycus.com/home/auth", "selectors": ["document","dew-footer"], "misMatchThreshold": 0.1, "delay": 50000, "readySelector": "", "onReadyScript": "puppet/onReadyHome.js" }, { "label": "online-store", "cookiePath": "backstop_data/engine_scripts/cookies.json", "url": "https://dewdrops-rp.zycus.com/eproc/online-store", "selectors": ["document"], "misMatchThreshold": 0.1, "delay": 50000, "readySelector": "", "onReadyScript": "puppet/onReadyOnlineStore.js" } ], "engine": "puppeteer", "engineOptions": { "args": [ "--no-sandbox", "--disable-setuid-sandbox" ]

}, "report": ["browser"], "paths": { "bitmaps_reference": "backstop_data/bitmaps_reference", "bitmaps_test": "backstop_data/bitmaps_test", "html_report": "backstop_data/html_report", "ci_report": "backstop_data/ci_report" }, "asyncCaptureLimit": 5, "asyncCompareLimit": 5, "debug": false, "debugWindow": false, "archiveReport": true, "scenarioLogsInReports": false, "selectorExpansion": false }

autotest-web avatar Aug 07 '24 14:08 autotest-web

One more issue I'm facing is that when capturing the reference screenshot and running BackstopJS tests, a new browser instance opens, which is not expected. How can this be handled with WebDriver? The screenshot should be captured using the currently running automation browser.

autotest-web avatar Aug 08 '24 17:08 autotest-web

@maciej-siola @garris Can u pls help here

autotest-web avatar Aug 08 '24 17:08 autotest-web