{"action":"created","issue":{"url":"https://api.github.com/repos/angular/protractor/issues/169","labels_url":"https://api.github.com/repos/angular/protractor/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/angular/protractor/issues/169/comments","events_url":"https://api.github.com/repos/angular/protractor/issues/169/events","html_url":"https://github.com/angular/protractor/issues/169","id":21079747,"number":169,"title":"Avoid waiting for $timeout()s ?","user":{"login":"drhumlen","id":4758115,"avatar_url":"https://avatars.githubusercontent.com/u/4758115?v=3","gravatar_id":"","url":"https://api.github.com/users/drhumlen","html_url":"https://github.com/drhumlen","followers_url":"https://api.github.com/users/drhumlen/followers","following_url":"https://api.github.com/users/drhumlen/following{/other_user}","gists_url":"https://api.github.com/users/drhumlen/gists{/gist_id}","starred_url":"https://api.github.com/users/drhumlen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drhumlen/subscriptions","organizations_url":"https://api.github.com/users/drhumlen/orgs","repos_url":"https://api.github.com/users/drhumlen/repos","events_url":"https://api.github.com/users/drhumlen/events{/privacy}","received_events_url":"https://api.github.com/users/drhumlen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/protractor/labels/type:%20question","name":"type: question","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2013-10-16T13:26:20Z","updated_at":"2016-01-21T10:51:50Z","closed_at":"2013-10-23T16:10:59Z","body":"In our app we display \"popup\" messages to our user when certain buttons are clicked. These popup messages are only visible for about 20 seconds (after which $timeout removes them). \r\n\r\nThe problem is that Protractor seems to wait until the $timeout is completed before it .findElement() and .expect()s things. However, when the $timeout is *timed out*, the message is gone, and the element is not found.\r\n\r\nAny suggestion on how to bypass/solve this? (We *need* to assert that the correct \"popup\" message is displayed to the user)\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/angular/protractor/issues/comments/173536512","html_url":"https://github.com/angular/protractor/issues/169#issuecomment-173536512","issue_url":"https://api.github.com/repos/angular/protractor/issues/169","id":173536512,"user":{"login":"angufix","id":15122959,"avatar_url":"https://avatars.githubusercontent.com/u/15122959?v=3","gravatar_id":"","url":"https://api.github.com/users/angufix","html_url":"https://github.com/angufix","followers_url":"https://api.github.com/users/angufix/followers","following_url":"https://api.github.com/users/angufix/following{/other_user}","gists_url":"https://api.github.com/users/angufix/gists{/gist_id}","starred_url":"https://api.github.com/users/angufix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angufix/subscriptions","organizations_url":"https://api.github.com/users/angufix/orgs","repos_url":"https://api.github.com/users/angufix/repos","events_url":"https://api.github.com/users/angufix/events{/privacy}","received_events_url":"https://api.github.com/users/angufix/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T10:51:50Z","updated_at":"2016-01-21T10:51:50Z","body":"+1. need a fix. why should we use ugly workarounds with interval."}}