{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/490","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/490/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/490/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/490/events","html_url":"https://github.com/webdriverio/webdriverio/issues/490","id":66725461,"number":490,"title":"alertVisible functionality","user":{"login":"sean-hill","id":1205866,"avatar_url":"https://avatars.githubusercontent.com/u/1205866?v=3","gravatar_id":"","url":"https://api.github.com/users/sean-hill","html_url":"https://github.com/sean-hill","followers_url":"https://api.github.com/users/sean-hill/followers","following_url":"https://api.github.com/users/sean-hill/following{/other_user}","gists_url":"https://api.github.com/users/sean-hill/gists{/gist_id}","starred_url":"https://api.github.com/users/sean-hill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean-hill/subscriptions","organizations_url":"https://api.github.com/users/sean-hill/orgs","repos_url":"https://api.github.com/users/sean-hill/repos","events_url":"https://api.github.com/users/sean-hill/events{/privacy}","received_events_url":"https://api.github.com/users/sean-hill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-06T22:57:24Z","updated_at":"2015-04-06T23:36:43Z","closed_at":null,"body":"Is there a way to check if an alert is present on the page?"},"comment":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/comments/90284794","html_url":"https://github.com/webdriverio/webdriverio/issues/490#issuecomment-90284794","issue_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/490","id":90284794,"user":{"login":"sean-hill","id":1205866,"avatar_url":"https://avatars.githubusercontent.com/u/1205866?v=3","gravatar_id":"","url":"https://api.github.com/users/sean-hill","html_url":"https://github.com/sean-hill","followers_url":"https://api.github.com/users/sean-hill/followers","following_url":"https://api.github.com/users/sean-hill/following{/other_user}","gists_url":"https://api.github.com/users/sean-hill/gists{/gist_id}","starred_url":"https://api.github.com/users/sean-hill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean-hill/subscriptions","organizations_url":"https://api.github.com/users/sean-hill/orgs","repos_url":"https://api.github.com/users/sean-hill/repos","events_url":"https://api.github.com/users/sean-hill/events{/privacy}","received_events_url":"https://api.github.com/users/sean-hill/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T23:36:43Z","updated_at":"2015-04-06T23:36:43Z","body":"Hey @christian-bromann, \r\n\r\nI found a solution\r\n\r\n    .alertText().then(\r\n        function(data){\r\n            console.log('Got alert text:', data.value);\r\n        }, function(err){\r\n            console.log('There was no alert, but handled gracefully:', err)\r\n        })"}}