{"action":"opened","issue":{"url":"https://api.github.com/repos/CarmenPopoviciu/protractor-testing-guidelines/issues/12","labels_url":"https://api.github.com/repos/CarmenPopoviciu/protractor-testing-guidelines/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/CarmenPopoviciu/protractor-testing-guidelines/issues/12/comments","events_url":"https://api.github.com/repos/CarmenPopoviciu/protractor-testing-guidelines/issues/12/events","html_url":"https://github.com/CarmenPopoviciu/protractor-testing-guidelines/issues/12","id":66907117,"number":12,"title":"Add section about helpers","user":{"login":"CarmenPopoviciu","id":4638332,"avatar_url":"https://avatars.githubusercontent.com/u/4638332?v=3","gravatar_id":"","url":"https://api.github.com/users/CarmenPopoviciu","html_url":"https://github.com/CarmenPopoviciu","followers_url":"https://api.github.com/users/CarmenPopoviciu/followers","following_url":"https://api.github.com/users/CarmenPopoviciu/following{/other_user}","gists_url":"https://api.github.com/users/CarmenPopoviciu/gists{/gist_id}","starred_url":"https://api.github.com/users/CarmenPopoviciu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CarmenPopoviciu/subscriptions","organizations_url":"https://api.github.com/users/CarmenPopoviciu/orgs","repos_url":"https://api.github.com/users/CarmenPopoviciu/repos","events_url":"https://api.github.com/users/CarmenPopoviciu/events{/privacy}","received_events_url":"https://api.github.com/users/CarmenPopoviciu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-07T14:54:17Z","updated_at":"2015-04-07T14:54:17Z","closed_at":null,"body":"eg:\r\n\r\nthis.blur = function () {\r\n        return function () {\r\n            var body = element(by.css('body'));\r\n            body.click();\r\n        };\r\n    };\r\n\r\nor\r\n\r\nthis.isDisplayed = function (element) {\r\n        return function () {\r\n            return element.isPresent().then(function (isPresent) {\r\n                if (isPresent) {\r\n                    return element.isDisplayed();\r\n                }\r\n                return false;\r\n            });\r\n        };\r\n    };"}}