I am facing a problem while I try to take screenshots on real device or emulator
I could able to see appium is trying to save screenshots but I am not able to see them in my results folder where I have set jasmine configuration.
[HTTP] <-- GET /wd/hub/session/6b8effe9-2948-47ee-a336-3bb77485f2d5/screenshot - - ms - -
[HTTP]
[HTTP] <-- GET /wd/hub/session/6b8effe9-2948-47ee-a336-3bb77485f2d5/screenshot - - ms - -
config.js
jasmine.getEnv().afterEach(function(done) {
wdBrowser.context('WEBVIEW_io.ionic.starter').then(function () {
browser.takeScreenshot().then(function (png) {
console.log('browser.takeScreenshot()');
allure.createAttachment('Screenshot', function () {
return new Buffer(png, 'base64');
}, 'image/png')();
done();
});
});
});
Appium hangs after when the test is completed.
can anyone help me on this?