{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/684","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/684/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/684/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/684/events","html_url":"https://github.com/webdriverio/webdriverio/issues/684","id":98646873,"number":684,"title":"selendroid doesn't like loggingPrefs","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},"labels":[{"url":"https://api.github.com/repos/webdriverio/webdriverio/labels/Bug","name":"Bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/webdriverio/webdriverio/milestones/2","html_url":"https://github.com/webdriverio/webdriverio/milestones/Upcoming","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/milestones/2/labels","id":1138980,"number":2,"title":"Upcoming","description":"Features or issues that are not blocked and reasonable to work on.","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":32,"closed_issues":45,"state":"open","created_at":"2015-05-29T00:45:55Z","updated_at":"2015-11-17T01:30:50Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-08-03T00:02:08Z","updated_at":"2015-11-19T14:31:24Z","closed_at":"2015-08-21T08:31:54Z","body":"The Selendroid driver that Saucelabs is currently using doesn't appear to support any loggingPrefs being passed. Even with an empty object, it generates this error:\r\n\r\n```\r\nio.selendroid.server.model.SelendroidStandaloneDriver createNewTestSession\r\nSEVERE: Error occurred while starting Selendroid session\r\njava.lang.ClassCastException: org.json.JSONObject cannot be cast to org.openqa.selenium.logging.LoggingPreferences\r\n```\r\n\r\nUnfortunately, with this change there is no way to exclude loggingPrefs from being sent, since the deepMerge is smashing the object back onto capabilities."},"comment":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/comments/158073621","html_url":"https://github.com/webdriverio/webdriverio/issues/684#issuecomment-158073621","issue_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/684","id":158073621,"user":{"login":"stantaylor","id":14043730,"avatar_url":"https://avatars.githubusercontent.com/u/14043730?v=3","gravatar_id":"","url":"https://api.github.com/users/stantaylor","html_url":"https://github.com/stantaylor","followers_url":"https://api.github.com/users/stantaylor/followers","following_url":"https://api.github.com/users/stantaylor/following{/other_user}","gists_url":"https://api.github.com/users/stantaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/stantaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stantaylor/subscriptions","organizations_url":"https://api.github.com/users/stantaylor/orgs","repos_url":"https://api.github.com/users/stantaylor/repos","events_url":"https://api.github.com/users/stantaylor/events{/privacy}","received_events_url":"https://api.github.com/users/stantaylor/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T14:31:24Z","updated_at":"2015-11-19T14:31:24Z","body":"I'm getting the same problem with selendroid and SauceLabs (only  with browser tests on Android devices). The problem seems to be that if the keyword 'loggingPrefs' is in the desired capabilities, regardless of the values, selendroid chokes on it. I tried adding \"loggingPrefs\": {} and \"loggingPrefs\": \"\" to my specified desired capabilities, and it still choked. For now--in order to get my tests to run--my only option is to fork webdriverio and remove the code that sets loggingPrefs. Not sure what the long term solution should be."}}