{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1190","repository_url":"https://api.github.com/repos/webdriverio/webdriverio","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1190/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1190/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1190/events","html_url":"https://github.com/webdriverio/webdriverio/issues/1190","id":142934929,"number":1190,"title":"`after` callback fired only after session is deleted.","user":{"login":"eyalzek","id":6243438,"avatar_url":"https://avatars.githubusercontent.com/u/6243438?v=3","gravatar_id":"","url":"https://api.github.com/users/eyalzek","html_url":"https://github.com/eyalzek","followers_url":"https://api.github.com/users/eyalzek/followers","following_url":"https://api.github.com/users/eyalzek/following{/other_user}","gists_url":"https://api.github.com/users/eyalzek/gists{/gist_id}","starred_url":"https://api.github.com/users/eyalzek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyalzek/subscriptions","organizations_url":"https://api.github.com/users/eyalzek/orgs","repos_url":"https://api.github.com/users/eyalzek/repos","events_url":"https://api.github.com/users/eyalzek/events{/privacy}","received_events_url":"https://api.github.com/users/eyalzek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-23T11:31:55Z","updated_at":"2016-03-23T11:41:25Z","closed_at":null,"body":"Using webdriverio v3.4, selenium-server 2.53.0\r\n\r\nExpected behavior: global `browser` object would be available in the `after` callback, as well as all the custom commands etc.\r\n\r\nActual behavior: session is deleted before the `after` callback is reached, so the browser object is missing a session id, causing a `ServerError`.\r\n\r\nCode sample and output can be found here:\r\nhttps://gist.github.com/5390e856ba180f49eced"},"comment":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/comments/200310343","html_url":"https://github.com/webdriverio/webdriverio/issues/1190#issuecomment-200310343","issue_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1190","id":200310343,"user":{"login":"eyalzek","id":6243438,"avatar_url":"https://avatars.githubusercontent.com/u/6243438?v=3","gravatar_id":"","url":"https://api.github.com/users/eyalzek","html_url":"https://github.com/eyalzek","followers_url":"https://api.github.com/users/eyalzek/followers","following_url":"https://api.github.com/users/eyalzek/following{/other_user}","gists_url":"https://api.github.com/users/eyalzek/gists{/gist_id}","starred_url":"https://api.github.com/users/eyalzek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyalzek/subscriptions","organizations_url":"https://api.github.com/users/eyalzek/orgs","repos_url":"https://api.github.com/users/eyalzek/repos","events_url":"https://api.github.com/users/eyalzek/events{/privacy}","received_events_url":"https://api.github.com/users/eyalzek/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T11:41:25Z","updated_at":"2016-03-23T11:41:25Z","body":"That works, but I'm using the test runner and I want to avoid repeating this code in each of the test files."}}