{"action":"created","issue":{"url":"https://api.github.com/repos/appium/python-client/issues/244","repository_url":"https://api.github.com/repos/appium/python-client","labels_url":"https://api.github.com/repos/appium/python-client/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/appium/python-client/issues/244/comments","events_url":"https://api.github.com/repos/appium/python-client/issues/244/events","html_url":"https://github.com/appium/python-client/issues/244","id":351575047,"node_id":"MDU6SXNzdWUzNTE1NzUwNDc=","number":244,"title":"WebDriver Exception when Background","user":{"login":"HeEveret","id":42469714,"node_id":"MDQ6VXNlcjQyNDY5NzE0","avatar_url":"https://avatars2.githubusercontent.com/u/42469714?v=4","gravatar_id":"","url":"https://api.github.com/users/HeEveret","html_url":"https://github.com/HeEveret","followers_url":"https://api.github.com/users/HeEveret/followers","following_url":"https://api.github.com/users/HeEveret/following{/other_user}","gists_url":"https://api.github.com/users/HeEveret/gists{/gist_id}","starred_url":"https://api.github.com/users/HeEveret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeEveret/subscriptions","organizations_url":"https://api.github.com/users/HeEveret/orgs","repos_url":"https://api.github.com/users/HeEveret/repos","events_url":"https://api.github.com/users/HeEveret/events{/privacy}","received_events_url":"https://api.github.com/users/HeEveret/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-08-17T12:28:41Z","updated_at":"2018-08-29T07:54:56Z","closed_at":null,"author_association":"NONE","body":"We have a recurring error testing android. When i do \"self.driver.background_app(3)\" sometimes happends a WebDriverException. \r\n\r\nWe have to do background to update de xml tree of uiAutomator. If we dont do that, cant wait any element there because never appear.\r\n\r\nMy question are two:\r\n- can we do another thing to refresh the xml tree?\r\n- what can we do to avoid WebDriverExceptions? good practices or something like that...\r\n"},"comment":{"url":"https://api.github.com/repos/appium/python-client/issues/comments/416860601","html_url":"https://github.com/appium/python-client/issues/244#issuecomment-416860601","issue_url":"https://api.github.com/repos/appium/python-client/issues/244","id":416860601,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjg2MDYwMQ==","user":{"login":"KazuCocoa","id":5511591,"node_id":"MDQ6VXNlcjU1MTE1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/5511591?v=4","gravatar_id":"","url":"https://api.github.com/users/KazuCocoa","html_url":"https://github.com/KazuCocoa","followers_url":"https://api.github.com/users/KazuCocoa/followers","following_url":"https://api.github.com/users/KazuCocoa/following{/other_user}","gists_url":"https://api.github.com/users/KazuCocoa/gists{/gist_id}","starred_url":"https://api.github.com/users/KazuCocoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KazuCocoa/subscriptions","organizations_url":"https://api.github.com/users/KazuCocoa/orgs","repos_url":"https://api.github.com/users/KazuCocoa/repos","events_url":"https://api.github.com/users/KazuCocoa/events{/privacy}","received_events_url":"https://api.github.com/users/KazuCocoa/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T07:54:56Z","updated_at":"2018-08-29T07:54:56Z","author_association":"MEMBER","body":"What about adding below lines?\r\n\r\n```\r\nandroid {\r\n    ...\r\n    compileOptions {\r\n        encoding = 'UTF-8'\r\n        sourceCompatibility JavaVersion.VERSION_1_8\r\n        targetCompatibility JavaVersion.VERSION_1_8\r\n    }\r\n}\r\n```\r\n\r\nBelow is an example where `compileOptions` is.\r\nhttps://stackoverflow.com/questions/26861011/android-compile-error-java-plugin-has-been-applied-not-compatible-with-android\r\n\r\n\r\nIf you have no android build environment, https://developer.android.com/studio/install also help building the environment."}}
{"actor":{"display_login":"KazuCocoa"}}