{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/605","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/605/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/605/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/605/events","html_url":"https://github.com/webdriverio/webdriverio/issues/605","id":93226893,"number":605,"title":"getElementSize Errors","user":{"login":"Skadi2k3","id":1088973,"avatar_url":"https://avatars.githubusercontent.com/u/1088973?v=3","gravatar_id":"","url":"https://api.github.com/users/Skadi2k3","html_url":"https://github.com/Skadi2k3","followers_url":"https://api.github.com/users/Skadi2k3/followers","following_url":"https://api.github.com/users/Skadi2k3/following{/other_user}","gists_url":"https://api.github.com/users/Skadi2k3/gists{/gist_id}","starred_url":"https://api.github.com/users/Skadi2k3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skadi2k3/subscriptions","organizations_url":"https://api.github.com/users/Skadi2k3/orgs","repos_url":"https://api.github.com/users/Skadi2k3/repos","events_url":"https://api.github.com/users/Skadi2k3/events{/privacy}","received_events_url":"https://api.github.com/users/Skadi2k3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webdriverio/webdriverio/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/webdriverio/webdriverio/milestones/2","html_url":"https://github.com/webdriverio/webdriverio/milestones/v3.1","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/milestones/2/labels","id":1138980,"number":2,"title":"v3.1","description":"","creator":{"login":"christian-bromann","id":731337,"avatar_url":"https://avatars.githubusercontent.com/u/731337?v=3","gravatar_id":"","url":"https://api.github.com/users/christian-bromann","html_url":"https://github.com/christian-bromann","followers_url":"https://api.github.com/users/christian-bromann/followers","following_url":"https://api.github.com/users/christian-bromann/following{/other_user}","gists_url":"https://api.github.com/users/christian-bromann/gists{/gist_id}","starred_url":"https://api.github.com/users/christian-bromann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christian-bromann/subscriptions","organizations_url":"https://api.github.com/users/christian-bromann/orgs","repos_url":"https://api.github.com/users/christian-bromann/repos","events_url":"https://api.github.com/users/christian-bromann/events{/privacy}","received_events_url":"https://api.github.com/users/christian-bromann/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":1,"state":"open","created_at":"2015-05-29T00:45:55Z","updated_at":"2015-07-06T09:40:05Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-07-06T08:56:34Z","updated_at":"2015-07-06T09:43:07Z","closed_at":null,"body":"This relates to the following code example: https://github.com/webdriverio/webdriverio/blob/master/examples/webdriverio.with.mocha.and.chai.js\r\n\r\nIf you change the browser to, e.g. firefox, or the expected value, e.g. from 26 to 27, it will exit the whole testing suite without even calling the after function.\r\n\r\nIt ends with:\r\nundefined: expected 26 to equal 27 \r\nat elementIdSize(\"0\") at     at /<path>/webdriverio/lib/commands/getElementSize.js:43:4 "},"comment":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/comments/118787995","html_url":"https://github.com/webdriverio/webdriverio/issues/605#issuecomment-118787995","issue_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/605","id":118787995,"user":{"login":"christian-bromann","id":731337,"avatar_url":"https://avatars.githubusercontent.com/u/731337?v=3","gravatar_id":"","url":"https://api.github.com/users/christian-bromann","html_url":"https://github.com/christian-bromann","followers_url":"https://api.github.com/users/christian-bromann/followers","following_url":"https://api.github.com/users/christian-bromann/following{/other_user}","gists_url":"https://api.github.com/users/christian-bromann/gists{/gist_id}","starred_url":"https://api.github.com/users/christian-bromann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christian-bromann/subscriptions","organizations_url":"https://api.github.com/users/christian-bromann/orgs","repos_url":"https://api.github.com/users/christian-bromann/repos","events_url":"https://api.github.com/users/christian-bromann/events{/privacy}","received_events_url":"https://api.github.com/users/christian-bromann/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T09:43:07Z","updated_at":"2015-07-06T09:43:07Z","body":"`getElementSize` should not throw an error actually. But indeed if a command fails the test suite doesn't end by calling the after hook function. I tried to just throw an error and it worked properly."}}