{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/11425","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/11425/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/11425/comments","events_url":"https://api.github.com/repos/appium/appium/issues/11425/events","html_url":"https://github.com/appium/appium/issues/11425","id":363737557,"node_id":"MDU6SXNzdWUzNjM3Mzc1NTc=","number":11425,"title":"Is there any way to forward waitForQuiescence to activateApp?","user":{"login":"jamesvanhorn","id":19415323,"node_id":"MDQ6VXNlcjE5NDE1MzIz","avatar_url":"https://avatars1.githubusercontent.com/u/19415323?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesvanhorn","html_url":"https://github.com/jamesvanhorn","followers_url":"https://api.github.com/users/jamesvanhorn/followers","following_url":"https://api.github.com/users/jamesvanhorn/following{/other_user}","gists_url":"https://api.github.com/users/jamesvanhorn/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesvanhorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesvanhorn/subscriptions","organizations_url":"https://api.github.com/users/jamesvanhorn/orgs","repos_url":"https://api.github.com/users/jamesvanhorn/repos","events_url":"https://api.github.com/users/jamesvanhorn/events{/privacy}","received_events_url":"https://api.github.com/users/jamesvanhorn/received_events","type":"User","site_admin":false},"labels":[{"id":24368808,"node_id":"MDU6TGFiZWwyNDM2ODgwOA==","url":"https://api.github.com/repos/appium/appium/labels/Enhancement","name":"Enhancement","color":"ffaa33","default":false},{"id":427212191,"node_id":"MDU6TGFiZWw0MjcyMTIxOTE=","url":"https://api.github.com/repos/appium/appium/labels/XCUITest","name":"XCUITest","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-25T19:44:33Z","updated_at":"2018-09-25T21:28:27Z","closed_at":null,"author_association":"NONE","body":"## The problem\r\n\r\nUsing terminateApp/activateApp does not honor waitForQuiesence capability. This results in activateApp hanging often for us on simulators.\r\n\r\n## Environment\r\n\r\n* Appium version (or git revision) that exhibits the issue: 1.9.0\r\n* Last Appium version that did not exhibit the issue (if applicable): N/A\r\n* Desktop OS/version used to run Appium: Mac 10.13\r\n* Node.js version (unless using Appium.app|exe): 10.1.0\r\n* Mobile platform/version under test: iOS 12.0\r\n* Real device or emulator/simulator: Simulator\r\n* Appium CLI or Appium.app|exe: CLI\r\n\r\n\r\n## Code To Reproduce Issue [ Good To Have ]\r\n\r\nInitialize a driver (with waitForQuiesence set to false) then call terminate and activate app back to back. On activateApp look at Xcode logs and you will see the log message \"Wait for accessibility to load\". This is undesired behavior, since often times for us accessibility never loads on the simulator only.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/424507848","html_url":"https://github.com/appium/appium/issues/11425#issuecomment-424507848","issue_url":"https://api.github.com/repos/appium/appium/issues/11425","id":424507848,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDUwNzg0OA==","user":{"login":"jamesvanhorn","id":19415323,"node_id":"MDQ6VXNlcjE5NDE1MzIz","avatar_url":"https://avatars1.githubusercontent.com/u/19415323?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesvanhorn","html_url":"https://github.com/jamesvanhorn","followers_url":"https://api.github.com/users/jamesvanhorn/followers","following_url":"https://api.github.com/users/jamesvanhorn/following{/other_user}","gists_url":"https://api.github.com/users/jamesvanhorn/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesvanhorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesvanhorn/subscriptions","organizations_url":"https://api.github.com/users/jamesvanhorn/orgs","repos_url":"https://api.github.com/users/jamesvanhorn/repos","events_url":"https://api.github.com/users/jamesvanhorn/events{/privacy}","received_events_url":"https://api.github.com/users/jamesvanhorn/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T21:28:27Z","updated_at":"2018-09-25T21:28:27Z","author_association":"NONE","body":"So i ran it a few times and seems to work? Interestingly though, Im not seeing anything passed to activateApp() method aside from bundle ID and session?\r\n`[\"<BUNDLEID>\",null,null,null,\"48d94e46-19b4-4e6c-93a8-e3558bb9f358\"]`\r\n\r\nFull log:\r\n```\r\n17:17:02 [HTTP] --> POST /wd/hub/session/48d94e46-19b4-4e6c-93a8-e3558bb9f358/appium/device/activate_app\r\n17:17:02 [HTTP] {\"bundleId\":\"<BUNDLEID>\"}\r\n17:17:02 [debug] [W3C] Calling AppiumDriver.activateApp() with args: [\"<BUNDLEID>\",null,null,null,\"48d94e46-19b4-4e6c-93a8-e3558bb9f358\"]\r\n17:17:02 [debug] [XCUITest] Executing command 'activateApp'\r\n17:17:02 [debug] [XCUITest] Setting custom timeout to 180000 ms for 'mobileLaunchApp' command\r\n17:17:02 [debug] [JSONWP Proxy] Proxying [POST /wda/apps/launch] to [POST http://localhost:8100/session/364CDDD0-D4A3-4D15-9E52-20C401C5BA6B/wda/apps/launch] with body: {\"bundleId\":\"<BUNDLEID>\"}\r\n17:17:02 [Xcode]     t =    93.98s Open <BUNDLEID>\r\n17:17:02 [Xcode] \r\n17:17:02 [Xcode]     t =    93.98s     Launch <BUNDLEID>\r\n17:17:02 [Xcode] \r\n17:18:03 [Xcode] 2018-09-25 17:18:02.957342-0400 WebDriverAgentRunner-Runner[97485:9822105] Enqueue Failure: Application '<BUNDLEID> does not have a process ID /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 37 1\r\n17:18:03 [Xcode] \r\n17:18:04 [Xcode]     t =   155.03s Open <BUNDLEID>\r\n17:18:04 [Xcode]     t =   155.03s     Activate <BUNDLEID>\r\n17:18:04 [Xcode] \r\n17:18:04 [debug] [JSONWP Proxy] Got response with status 200: {\"value\":{},\"sessionId\":\"364CDDD0-D4A3-4D15-9E52-20C401C5BA6B\",\"status\":0}\r\n17:18:04 [debug] [MJSONWP] Responding to client with driver.activateApp() result: {}\r\n17:18:04 [HTTP] <-- POST /wd/hub/session/48d94e46-19b4-4e6c-93a8-e3558bb9f358/appium/device/activate_app 200 61104 ms - 74\r\n17:18:04 [HTTP] \r\n17:18:04 2018-09-25 17:18:04 INFO  IOSBaseTest         :96   - App activated\r\n```\r\n\r\nRunning some more to confirm. Might be just a logging thing. Made sure to remove DerivedData and all that when checking out `noq_activate` branch. Manually uninstalled WDA from sims and restarted sim/Appium as well. I saw the dependencies re-download as well so i dont think i missed anything."}}
{"actor":{"display_login":"jamesvanhorn"}}