{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/628","repository_url":"https://api.github.com/repos/segmentio/nightmare","labels_url":"https://api.github.com/repos/segmentio/nightmare/issues/628/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/nightmare/issues/628/comments","events_url":"https://api.github.com/repos/segmentio/nightmare/issues/628/events","html_url":"https://github.com/segmentio/nightmare/issues/628","id":153752227,"number":628,"title":"Would be great if wait('element_selector') returned true","user":{"login":"atomless","id":28726,"avatar_url":"https://avatars.githubusercontent.com/u/28726?v=3","gravatar_id":"","url":"https://api.github.com/users/atomless","html_url":"https://github.com/atomless","followers_url":"https://api.github.com/users/atomless/followers","following_url":"https://api.github.com/users/atomless/following{/other_user}","gists_url":"https://api.github.com/users/atomless/gists{/gist_id}","starred_url":"https://api.github.com/users/atomless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atomless/subscriptions","organizations_url":"https://api.github.com/users/atomless/orgs","repos_url":"https://api.github.com/users/atomless/repos","events_url":"https://api.github.com/users/atomless/events{/privacy}","received_events_url":"https://api.github.com/users/atomless/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-05-09T11:02:17Z","updated_at":"2016-05-27T20:07:47Z","closed_at":"2016-05-27T20:07:47Z","body":"In testing my app I am using `wait('element_selector')` a lot. Often I need to return a boolean value once the element is found in order to use it in a truthy assertion. SO I end up doing : `let el_found = await browser.wait('el_selector').evaluate(() => { return true; });` or ``let el_found = await browser.wait('el_selector').exists('el_selector');`\r\n\r\nIt seems to me it would be much nicer if wait simply returned true once the element was found?"},"comment":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/comments/222241666","html_url":"https://github.com/segmentio/nightmare/issues/628#issuecomment-222241666","issue_url":"https://api.github.com/repos/segmentio/nightmare/issues/628","id":222241666,"user":{"login":"rosshinkley","id":1823131,"avatar_url":"https://avatars.githubusercontent.com/u/1823131?v=3","gravatar_id":"","url":"https://api.github.com/users/rosshinkley","html_url":"https://github.com/rosshinkley","followers_url":"https://api.github.com/users/rosshinkley/followers","following_url":"https://api.github.com/users/rosshinkley/following{/other_user}","gists_url":"https://api.github.com/users/rosshinkley/gists{/gist_id}","starred_url":"https://api.github.com/users/rosshinkley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosshinkley/subscriptions","organizations_url":"https://api.github.com/users/rosshinkley/orgs","repos_url":"https://api.github.com/users/rosshinkley/repos","events_url":"https://api.github.com/users/rosshinkley/events{/privacy}","received_events_url":"https://api.github.com/users/rosshinkley/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T20:07:47Z","updated_at":"2016-05-27T20:07:47Z","body":"Closing for inactivity, if this issue is still a problem feel free to reopen/open a new issue."}}
{"actor":{"display_login":"rosshinkley"}}