{"action":"created","issue":{"url":"https://api.github.com/repos/featurist/browser-monkey/issues/32","repository_url":"https://api.github.com/repos/featurist/browser-monkey","labels_url":"https://api.github.com/repos/featurist/browser-monkey/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/featurist/browser-monkey/issues/32/comments","events_url":"https://api.github.com/repos/featurist/browser-monkey/issues/32/events","html_url":"https://github.com/featurist/browser-monkey/pull/32","id":140949121,"number":32,"title":"Fuzzier finders","user":{"login":"joshski","id":22017,"avatar_url":"https://avatars.githubusercontent.com/u/22017?v=3","gravatar_id":"","url":"https://api.github.com/users/joshski","html_url":"https://github.com/joshski","followers_url":"https://api.github.com/users/joshski/followers","following_url":"https://api.github.com/users/joshski/following{/other_user}","gists_url":"https://api.github.com/users/joshski/gists{/gist_id}","starred_url":"https://api.github.com/users/joshski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshski/subscriptions","organizations_url":"https://api.github.com/users/joshski/orgs","repos_url":"https://api.github.com/users/joshski/repos","events_url":"https://api.github.com/users/joshski/events{/privacy}","received_events_url":"https://api.github.com/users/joshski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-03-15T11:46:44Z","updated_at":"2016-03-19T08:16:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/featurist/browser-monkey/pulls/32","html_url":"https://github.com/featurist/browser-monkey/pull/32","diff_url":"https://github.com/featurist/browser-monkey/pull/32.diff","patch_url":"https://github.com/featurist/browser-monkey/pull/32.patch"},"body":"Fuzzy finders `browser.link(label)` and `browser.button(label)`.\r\n\r\nUsing these means being less coupled to the document structure, so superficial changes to markup break fewer tests.\r\n\r\nI implemented them using xpath at first, then reimplemented with css and jquery. The code would be simpler using css `:has` pseudo-selector which is supported by jquery but otherwise not widely supported. What do you think?"},"comment":{"url":"https://api.github.com/repos/featurist/browser-monkey/issues/comments/198667197","html_url":"https://github.com/featurist/browser-monkey/pull/32#issuecomment-198667197","issue_url":"https://api.github.com/repos/featurist/browser-monkey/issues/32","id":198667197,"user":{"login":"adiel","id":76196,"avatar_url":"https://avatars.githubusercontent.com/u/76196?v=3","gravatar_id":"","url":"https://api.github.com/users/adiel","html_url":"https://github.com/adiel","followers_url":"https://api.github.com/users/adiel/followers","following_url":"https://api.github.com/users/adiel/following{/other_user}","gists_url":"https://api.github.com/users/adiel/gists{/gist_id}","starred_url":"https://api.github.com/users/adiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adiel/subscriptions","organizations_url":"https://api.github.com/users/adiel/orgs","repos_url":"https://api.github.com/users/adiel/repos","events_url":"https://api.github.com/users/adiel/events{/privacy}","received_events_url":"https://api.github.com/users/adiel/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T08:16:29Z","updated_at":"2016-03-19T08:16:29Z","body":"I think get these finders works by as individual actions first before worrying about how to batch them together to avoid lots of .then()s"}}