{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/984","repository_url":"https://api.github.com/repos/facebook/WebDriverAgent","labels_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/984/labels{/name}","comments_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/984/comments","events_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/984/events","html_url":"https://github.com/facebook/WebDriverAgent/issues/984","id":354252858,"node_id":"MDU6SXNzdWUzNTQyNTI4NTg=","number":984,"title":"WebDriverAgent function getPageSource hangs for over a minute","user":{"login":"donioe","id":26006535,"node_id":"MDQ6VXNlcjI2MDA2NTM1","avatar_url":"https://avatars2.githubusercontent.com/u/26006535?v=4","gravatar_id":"","url":"https://api.github.com/users/donioe","html_url":"https://github.com/donioe","followers_url":"https://api.github.com/users/donioe/followers","following_url":"https://api.github.com/users/donioe/following{/other_user}","gists_url":"https://api.github.com/users/donioe/gists{/gist_id}","starred_url":"https://api.github.com/users/donioe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donioe/subscriptions","organizations_url":"https://api.github.com/users/donioe/orgs","repos_url":"https://api.github.com/users/donioe/repos","events_url":"https://api.github.com/users/donioe/events{/privacy}","received_events_url":"https://api.github.com/users/donioe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-27T09:48:14Z","updated_at":"2018-09-28T08:42:48Z","closed_at":null,"author_association":"NONE","body":"## The problem\r\n\r\nWebDriverAgent function getPageSource hangs for 65 seconds at a time due to an error in XCElementSnapshot.hitTest. This prevents using the WDA method \"/source\".\r\n\r\n## Environment\r\n\r\n* Appium version (or git revision) that exhibits the issue: 1.8.2-beta\r\n* Last Appium version that did not exhibit the issue (if applicable):\r\n* Desktop OS/version used to run Appium: Mac OSX High Sierra\r\n* Mobile platform/version under test: iOS 12 beta-10 with Xcode 10 beta-6 (problems exists since beta-4)\r\n* Real device or emulator/simulator: Real device\r\n\r\n## Details\r\n\r\nThe current implementation of WebDriverAgent method XCUIElement+FBIsVisible.fb_isVisible uses the XCTest method XCElementSnapshot.hitTest which sometimes hangs for over a minute. Commenting out the line which uses this method solves the problem.\r\n\r\n## Link to Appium logs\r\n\r\nhttps://gist.github.com/donioe/dd362d927811e37193823c5710347a41\r\n\r\n## Code To Reproduce Issue [ Good To Have ]\r\n\r\nReproduces immediately with almost any app (even iOS SpringBoard):\r\n\r\n1. Run WebDriverAgent when device is connected.\r\n2. Open http://serverurl:8100/source\r\n3. Wait until the response arrives."},"comment":{"url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/comments/425366174","html_url":"https://github.com/facebook/WebDriverAgent/issues/984#issuecomment-425366174","issue_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/984","id":425366174,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTM2NjE3NA==","user":{"login":"marekcirkos","id":1397422,"node_id":"MDQ6VXNlcjEzOTc0MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/1397422?v=4","gravatar_id":"","url":"https://api.github.com/users/marekcirkos","html_url":"https://github.com/marekcirkos","followers_url":"https://api.github.com/users/marekcirkos/followers","following_url":"https://api.github.com/users/marekcirkos/following{/other_user}","gists_url":"https://api.github.com/users/marekcirkos/gists{/gist_id}","starred_url":"https://api.github.com/users/marekcirkos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marekcirkos/subscriptions","organizations_url":"https://api.github.com/users/marekcirkos/orgs","repos_url":"https://api.github.com/users/marekcirkos/repos","events_url":"https://api.github.com/users/marekcirkos/events{/privacy}","received_events_url":"https://api.github.com/users/marekcirkos/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T08:42:48Z","updated_at":"2018-09-28T08:42:48Z","author_association":"CONTRIBUTOR","body":"This is known to be slow, unfortunately there is no workaround yet."}}
{"actor":{"display_login":"marekcirkos"}}