{"action":"opened","issue":{"url":"https://api.github.com/repos/getgauge/taiko/issues/96","repository_url":"https://api.github.com/repos/getgauge/taiko","labels_url":"https://api.github.com/repos/getgauge/taiko/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/getgauge/taiko/issues/96/comments","events_url":"https://api.github.com/repos/getgauge/taiko/issues/96/events","html_url":"https://github.com/getgauge/taiko/issues/96","id":348232360,"node_id":"MDU6SXNzdWUzNDgyMzIzNjA=","number":96,"title":"Add option for base64 encoded screenshot","user":{"login":"zabil","id":54427,"node_id":"MDQ6VXNlcjU0NDI3","avatar_url":"https://avatars3.githubusercontent.com/u/54427?v=4","gravatar_id":"","url":"https://api.github.com/users/zabil","html_url":"https://github.com/zabil","followers_url":"https://api.github.com/users/zabil/followers","following_url":"https://api.github.com/users/zabil/following{/other_user}","gists_url":"https://api.github.com/users/zabil/gists{/gist_id}","starred_url":"https://api.github.com/users/zabil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zabil/subscriptions","organizations_url":"https://api.github.com/users/zabil/orgs","repos_url":"https://api.github.com/users/zabil/repos","events_url":"https://api.github.com/users/zabil/events{/privacy}","received_events_url":"https://api.github.com/users/zabil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-07T09:07:05Z","updated_at":"2018-08-07T09:07:05Z","closed_at":null,"author_association":"MEMBER","body":"### Current behavior\r\n\r\nThere's no way to get a base64 encoding of the screenshot from the `screenshot` api. This is useful for working with other runners like Gauge because a custom screenshot handler returns a base64 encoding.\r\n \r\n### Expected Behavior\r\n\r\nIntroduce an api\r\n\r\n```\r\nscreenshot({encoding:'base64'})\r\n```\r\n\r\nThat will return the screenshot in the specified encoding. I recommend making this the default.\r\n\r\nFor e.g.\r\n\r\n```\r\nscreenshot()\r\n```\r\n\r\nReturns the screenshot in base64 encoding instead of saving a temporary file.\r\n\r\nThis will make using taiko with Gauge as simple as.\r\n\r\n```\r\ngauge.screenshotFn = function () {\r\n    return screenshot();\r\n};\r\n```\r\n\r\nFor custom paths\r\n\r\n```\r\nscreenshot({path: '<path>'})\r\n```\r\n"}}
{"actor":{"display_login":"zabil"}}