Since the update to iOS 12.2, I am no longer able to switch into the web-view contexts on iOS Simulators.
By using the same app, same appium version, same version of all the appium dependencies but by using iOS 12.1, the issue disappears and I'm able to correctly switch to web-views. By comparing the appium console log of the two executions (the correct one on iOS 12.1 and the failing one on iOS 12.2), it seems like there is a problem on the contexts returned by the AppiumDriver.getContexts() GET method. In particular, it seems like the webview attributes (title, url) are mapped to the native context PID. As a result, the GET method, as you can see in the attached appium log, returns an array composed of the NATIVE_APP context and a WEBVIEW context which actually maps the native context (please notice that the webview name is WEBVIEW_PID_OF_NATIVE_CONTEXT.2, where .2 indicates the second page of a context. As far as I've seen so far, in all successful executions the webview contexts end with a .1 suffix). When trying to switch to the returned WEBVIEW, an exception occurs.
Excerpt of the log of the failing execution:
[HTTP] --> GET /wd/hub/session/1db198fa-6984-4550-b09b-326ceb44357b/contexts
[HTTP] {}
[debug] [W3C (1db198fa)] Calling AppiumDriver.getContexts() with args: ["1db198fa-6984-4550-b09b-326ceb44357b"]
[debug] [XCUITest] Executing command 'getContexts'
[debug] [iOS] Getting list of available contexts
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Selecting by url: false
[debug] [RemoteDebugger] Selecting application
[debug] [RemoteDebugger] Current applications available:
[debug] [RemoteDebugger] Application: 'PID:57976'
[debug] [RemoteDebugger] id: "PID:57976"
[debug] [RemoteDebugger] isProxy: false
[debug] [RemoteDebugger] name: "myApp"
[debug] [RemoteDebugger] bundleId: "myAppBundleID"
[debug] [RemoteDebugger] hostId: undefined
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray:
[debug] [RemoteDebugger] - id: 2
[debug] [RemoteDebugger] title: "myTitle" <--- such attributes are mapped on the native context (PID:57976)
[debug] [RemoteDebugger] url: "myUrl"
[debug] [RemoteDebugger] isKey: true
[debug] [RemoteDebugger] Application: 'PID:58003'
[debug] [RemoteDebugger] id: "PID:58003"
[debug] [RemoteDebugger] isProxy: true
[debug] [RemoteDebugger] name: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] bundleId: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] hostId: "PID:57976"
[debug] [RemoteDebugger] isActive: 1
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray: []
[debug] [RemoteDebugger] Found app id key 'PID:57976' for bundle 'myAppBundleID'
[debug] [RemoteDebugger] Found separate bundleId 'com.apple.WebKit.WebContent' acting as proxy for 'myAppBundleID', with app id 'PID:58003'
[debug] [RemoteDebugger] Trying out the possible app ids: PID:57976, PID:58003
[debug] [RemoteDebugger] Selecting app PID:57976 (try #1 of 20)
[debug] [RemoteDebugger] Sending '_rpc_forwardGetListing:' message to remote debugger (id: 71)
[debug] [RemoteDebugger] Received response from socket send: '["PID:57976",{"1":{"WIRPageIdentifierKey":1,"WI...'
[debug] [RemoteDebugger] Received page change notice for app 'PID:57976' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Finally selecting app PID:57976: [{"id":2,"title":"myTitle","url":"myUrl","isKey":true}]
[debug] [W3C (1db198fa)] Responding to client with driver.getContexts() result: ["NATIVE_APP","WEBVIEW_57976.2"] <-- the webview points to PID 57976, which is the native context. The suffix .2 is weird
[HTTP] <-- GET /wd/hub/session/1db198fa-6984-4550-b09b-326ceb44357b/contexts 200 7 ms - 42
....
....
....
[HTTP] --> POST /wd/hub/session/1db198fa-6984-4550-b09b-326ceb44357b/context
[HTTP] {"name":"WEBVIEW_57976.2"}
[debug] [W3C (1db198fa)] Calling AppiumDriver.setContext() with args: ["WEBVIEW_57976.2","1db198fa-6984-4550-b09b-326ceb44357b"]
[debug] [XCUITest] Executing command 'setContext'
[debug] [iOS] Attempting to set context to 'WEBVIEW_57976.2'
[debug] [RemoteDebugger] Selecting page '2' on app 'PID:57976' and forwarding socket setup
[debug] [RemoteDebugger] Sending '_rpc_forwardSocketSetup:' message to remote debugger (id: 72)
[debug] [RemoteDebugger] Sender key set
[debug] [RemoteDebugger] Sending '_rpc_forwardSocketData:' message to remote debugger (id: 73)
[debug] [W3C (1db198fa)] Encountered internal error running command: Error: Remote debugger error with code '-32000': Target not found.
[debug] [W3C (1db198fa)] at Object.errorHandler (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-rpc-client.js:246:18)
[debug] [W3C (1db198fa)] at RpcMessageHandler.handleDataMessage (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-message-handler.js:194:9)
[debug] [W3C (1db198fa)] at RpcMessageHandler.handleMessage (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-message-handler.js:77:13)
[debug] [W3C (1db198fa)] at RemoteDebuggerRpcClient.handleMessage [as receive] (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-rpc-client.js:394:35)
[debug] [W3C (1db198fa)] at Socket.emit (events.js:196:13)
[debug] [W3C (1db198fa)] at addChunk (_stream_readable.js:290:12)
[debug] [W3C (1db198fa)] at readableAddChunk (_stream_readable.js:271:11)
[debug] [W3C (1db198fa)] at Socket.Readable.push (_stream_readable.js:226:10)
[debug] [W3C (1db198fa)] at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
[HTTP] <-- POST /wd/hub/session/1db198fa-6984-4550-b09b-326ceb44357b/context 500 8
Result of the getContext method of a successful execution:
[HTTP] --> GET /wd/hub/session/156afb3b-5d7a-42dd-8472-09e6cce7d6a9/contexts
[HTTP] {}
[debug] [W3C (156afb3b)] Calling AppiumDriver.getContexts() with args: ["156afb3b-5d7a-42dd-8472-09e6cce7d6a9"]
[debug] [XCUITest] Executing command 'getContexts'
[debug] [iOS] Getting list of available contexts
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Selecting by url: false
[debug] [RemoteDebugger] Selecting application
[debug] [RemoteDebugger] Current applications available:
[debug] [RemoteDebugger] Application: 'PID:58876'
[debug] [RemoteDebugger] id: "PID:58876"
[debug] [RemoteDebugger] isProxy: false
[debug] [RemoteDebugger] name: "myApp"
[debug] [RemoteDebugger] bundleId: "myAppBundleId"
[debug] [RemoteDebugger] hostId: undefined
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray: []
[debug] [RemoteDebugger] Application: 'PID:58899'
[debug] [RemoteDebugger] id: "PID:58899"
[debug] [RemoteDebugger] isProxy: true
[debug] [RemoteDebugger] name: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] bundleId: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] hostId: "PID:58876"
[debug] [RemoteDebugger] isActive: 1
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray:
[debug] [RemoteDebugger] - id: 1
[debug] [RemoteDebugger] title: "myTitle" <-- here the webview attributes are mapped to the Webcontent process
[debug] [RemoteDebugger] url: "myUrl"
[debug] [RemoteDebugger] isKey: false
[debug] [RemoteDebugger] Found app id key 'PID:58876' for bundle 'myAppBundleID'
[debug] [RemoteDebugger] Found separate bundleId 'com.apple.WebKit.WebContent' acting as proxy for 'myAppBundleID', with app id 'PID:58899'
[debug] [RemoteDebugger] Trying out the possible app ids: PID:58876, PID:58899
[debug] [RemoteDebugger] Selecting app PID:58876 (try #1 of 20)
[debug] [RemoteDebugger] Sending '_rpc_forwardGetListing:' message to remote debugger (id: 101)
[debug] [RemoteDebugger] Received response from socket send: '["PID:58876",{"1":{"WIRPageIdentifierKey":1,"WI...'
[debug] [RemoteDebugger] Received page change notice for app 'PID:58876' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Received altered app id, updating from 'PID:58876' to 'PID:58899'
[debug] [RemoteDebugger] Finally selecting app PID:58899: [{"id":1,"title":"myTitle","url":"myUrl","isKey":false}]
[debug] [W3C (156afb3b)] Responding to client with driver.getContexts() result: ["NATIVE_APP","WEBVIEW_58899.1"] <-- here the returned webview maps the second process, i.e., the WebContent process
[HTTP] <-- GET /wd/hub/session/156afb3b-5d7a-42dd-8472-09e6cce7d6a9/contexts 200
I am experiencing the exact same problem
experiencing the same problem with the same settings.
The failing logs look just how I would expect them to.
Can you post the _full_ logs? There is something else going wrong.
Ok, I will post the full log as soon as possible. Meanwhile, could you please explain me why you say the output is what you expect? I mean, why in the failing execution (on iOS 12.2) the title and the url of the webview are associated with the first process (that is the native context), while in the successful execution (on iOS 12.1) the title and the url of the webview are associated with the second process (that is the webview context)? Could you explain me (for sake of curiosity) this difference and inconsistency?
Faced with the same problem
Here you can find the full log:
https://gist.github.com/blanco2005/cb01a502db09c9b8c31062a970930a10
Hi! I am having similar issue. Also with Appium 1.13.0 and iOS 12.2. Do you guys have any updates on it?
After investigation I found that Appium 1.13 with iOS 12.2 some times working if instead of driver.findElement(By).click is used custom tap action:
public void tapByElement(WebElement element) {
Point location = element.getLocation();
Dimension size = element.getSize();
TouchAction touchAction = new TouchAction(device.getAppiumDriver());
touchAction
.press(PointOption.point((location.x + size.width / 2), (location.y + size.height / 2)))
.release()
.perform();
}
But it is unstable.
Appium 1.13 with iOS 12.1 is able to do driver.findElement(By).click.
Well, that is not the native context. It is just another app within the web inspector.
I'm concerned, seeing the full logs, that certain information is missing. I expect some debugging information to be there, before the actual contexts are seen:
[HTTP] --> GET /wd/hub/session/cd005e26-a83b-4b2c-b329-2d9566099260/contexts
[HTTP] {}
[debug] [MJSONWP (cd005e26)] Calling AppiumDriver.getContexts() with args: ["cd005e26-a83b-4b2c-b329-2d9566099260"]
[debug] [XCUITest] Executing command 'getContexts'
[debug] [iOS] Getting list of available contexts
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Selecting by url: false
[debug] [RemoteDebugger] useNewSafari --> false
[debug] [RemoteDebugger] Checking which communication style to use (non-Safari on platform version '12.2')
[debug] [RemoteDebugger] Platform version equal or higher than '12.2': true
[RemoteDebugger] Setting communication protocol: using full Web Inspector protocol communication
[debug] [RemoteDebugger] Connecting to remote debugger through unix domain socket: '/private/tmp/com.apple.launchd.52bYesVPQJ/com.apple.webinspectord_sim.socket'
[debug] [RemoteDebugger] Debugger socket connected
[debug] [RemoteDebugger] Sending connection key request
[debug] [RemoteDebugger] Sending '_rpc_reportIdentifier:' message to remote debugger (id: 0)
What version of appium-remote-debugger is being used (run npm ls -g appium-remote-debugger)?
This is the result of the command:
โโโฌ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected] deduped
โ โโโฌ [email protected]
โ โโโฌ [email protected]
โ โโโ [email protected]
โโโ [email protected]
Ok. The problem is the last entry, [email protected]. This should not be there (it is not a direct dependency of appium, and is a version too early to handle iOs 12.2 correctly.
Can you try to uninstall and reinstall Appium?
Ok. The problem is the last entry,
[email protected]. This should not be there (it is not a direct dependency ofappium, and is a version too early to handle iOs 12.2 correctly.Can you try to uninstall and reinstall Appium?
I am experiencing the same problem with this configuration, I don't think that's the issue
โโโฌ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected] deduped
โโโฌ [email protected]
โโโฌ [email protected]
โโโ [email protected]
I confirm that the issue is still present after removing appium-remote-debugger 4.1.0.
The log regarding retrieving and setting the context is now the following one:
[debug] [RemoteDebugger] Page changed: {"1":{"WIRPageIdentifierKey":1,"WIRTitleKey":"JSContext","WIRTypeKey":"WIRTypeJavaScript"},"2":{"WIRTitleKey":"","WIRTypeKey":"WIRTypeWeb","WIRURLKey":"about:blank","WIRPageIdentifierKey":2}}
[debug] [RemoteDebugger] Notified that new application 'PID:96566' has connected
[debug] [RemoteDebugger] Received page change notice for app 'PID:96566' but listening for 'PID:96550'. Ignoring.
[debug] [RemoteDebugger] Notified that application 'PID:96566' has been updated
[debug] [RemoteDebugger] Page changed: {"1":{"WIRPageIdentifierKey":1,"WIRTitleKey":"JSContext","WIRTypeKey":"WIRTypeJavaScript"},"2":{"WIRTitleKey":"Best deals for your holidays","WIRTypeKey":"WIRTypeWeb","WIRURLKey":"myUrl,"WIRPageIdentifierKey":2}}
[debug] [RemoteDebugger] Received page change notice for app 'PID:96566' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Received page change notice for app 'PID:96566' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Received page change notice for app 'PID:96566' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Page changed: {"1":{"WIRPageIdentifierKey":1,"WIRTitleKey":"JSContext","WIRTypeKey":"WIRTypeJavaScript"},"2":{"WIRTitleKey":"myTitle","WIRTypeKey":"WIRTypeWeb","WIRURLKey":"myNewUrl","WIRPageIdentifierKey":2}}
[debug] [RemoteDebugger] Page changed: {"1":{"WIRPageIdentifierKey":1,"WIRTitleKey":"JSContext","WIRTypeKey":"WIRTypeJavaScript"},"2":{"WIRTitleKey":"myNewTitle","WIRTypeKey":"WIRTypeWeb","WIRURLKey":"myUrl","WIRPageIdentifierKey":2}}
[HTTP] --> GET /wd/hub/session/7045602e-a3c1-4f48-87ef-62d0ebefa8af/contexts
[HTTP] {}
[debug] [W3C (7045602e)] Calling AppiumDriver.getContexts() with args: ["7045602e-a3c1-4f48-87ef-62d0ebefa8af"]
[debug] [XCUITest] Executing command 'getContexts'
[debug] [iOS] Getting list of available contexts
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Selecting by url: false
[debug] [RemoteDebugger] Selecting application
[debug] [RemoteDebugger] Current applications available:
[debug] [RemoteDebugger] Application: 'PID:96550'
[debug] [RemoteDebugger] id: "PID:96550"
[debug] [RemoteDebugger] isProxy: false
[debug] [RemoteDebugger] name: "myapp"
[debug] [RemoteDebugger] bundleId: "com.myapp.bundleid"
[debug] [RemoteDebugger] hostId: undefined
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray:
[debug] [RemoteDebugger] - id: 2
[debug] [RemoteDebugger] title: "myNewTitle"
[debug] [RemoteDebugger] url: "myNewUrl"
[debug] [RemoteDebugger] isKey: false
[debug] [RemoteDebugger] Application: 'PID:96566'
[debug] [RemoteDebugger] id: "PID:96566"
[debug] [RemoteDebugger] isProxy: true
[debug] [RemoteDebugger] name: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] bundleId: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] hostId: "PID:96550"
[debug] [RemoteDebugger] isActive: 1
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray: []
[debug] [RemoteDebugger] Found app id key 'PID:96550' for bundle 'com.myapp.bundleid'
[debug] [RemoteDebugger] Found separate bundleId 'com.apple.WebKit.WebContent' acting as proxy for 'com.myapp.bundleid', with app id 'PID:96566'
[debug] [RemoteDebugger] Trying out the possible app ids: PID:96550, PID:96566
[debug] [RemoteDebugger] Selecting app PID:96550 (try #1 of 20)
[debug] [RemoteDebugger] Sending '_rpc_forwardGetListing:' message to remote debugger (id: 61)
[debug] [RemoteDebugger] Received response from socket send: '["PID:96550",{"1":{"WIRPageIdentifierKey":1,"WI...'
[debug] [RemoteDebugger] Received page change notice for app 'PID:96550' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Finally selecting app PID:96550: [{"id":2,"title":"myTitle","url":"myUrl","isKey":false}]
[debug] [W3C (7045602e)] Responding to client with driver.getContexts() result: ["NATIVE_APP","WEBVIEW_96550.2"]
[HTTP] <-- GET /wd/hub/session/7045602e-a3c1-4f48-87ef-62d0ebefa8af/contexts 200 95 ms - 42
[HTTP]
[HTTP] --> POST /wd/hub/session/7045602e-a3c1-4f48-87ef-62d0ebefa8af/context
[HTTP] {"name":"WEBVIEW_96550.2"}
[debug] [W3C (7045602e)] Calling AppiumDriver.setContext() with args: ["WEBVIEW_96550.2","7045602e-a3c1-4f48-87ef-62d0ebefa8af"]
[debug] [XCUITest] Executing command 'setContext'
[debug] [iOS] Attempting to set context to 'WEBVIEW_96550.2'
[debug] [RemoteDebugger] Selecting page '2' on app 'PID:96550' and forwarding socket setup
[debug] [RemoteDebugger] Sending '_rpc_forwardSocketSetup:' message to remote debugger (id: 62)
[debug] [RemoteDebugger] Sender key set
[debug] [RemoteDebugger] Sending '_rpc_forwardSocketData:' message to remote debugger (id: 63)
[RemoteDebugger] Setting communication protocol: using Target-based communication
[debug] [RemoteDebugger] Sending '_rpc_forwardSocketData:' message to remote debugger (id: 64)
[debug] [W3C (7045602e)] Encountered internal error running command: Error: Remote debugger error with code '-32000': Target not found.
[debug] [W3C (7045602e)] at Object.errorHandler (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-rpc-client.js:246:18)
[debug] [W3C (7045602e)] at RpcMessageHandler.handleDataMessage (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-message-handler.js:194:9)
[debug] [W3C (7045602e)] at RpcMessageHandler.handleMessage (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-message-handler.js:77:13)
[debug] [W3C (7045602e)] at RemoteDebuggerRpcClient.handleMessage [as receive] (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/remote-debugger-rpc-client.js:394:35)
[debug] [W3C (7045602e)] at Socket.emit (events.js:196:13)
[debug] [W3C (7045602e)] at addChunk (_stream_readable.js:290:12)
[debug] [W3C (7045602e)] at readableAddChunk (_stream_readable.js:271:11)
[debug] [W3C (7045602e)] at Socket.Readable.push (_stream_readable.js:226:10)
[debug] [W3C (7045602e)] at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
[HTTP] <-- POST /wd/hub/session/7045602e-a3c1-4f48-87ef-62d0ebefa8af/context 500 61 ms - 615
[HTTP]
[debug] [RemoteDebugger] Received page change notice for app 'PID:96566' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Received page change notice for app 'PID:96550' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Notified that application 'PID:96550' has been updated
Full logs? That snippet is not all that matters.
@lucaGazzola Can you post the logs for a run (as a link to a gist)?
Hi! I am having similar issue. Also with Appium 1.13.0 and iOS 12.2. Do you guys have any updates on it?
After investigation I found that Appium 1.13 with iOS 12.2 some times working if instead ofdriver.findElement(By).clickis used custom tap action:public void tapByElement(WebElement element) { Point location = element.getLocation(); Dimension size = element.getSize(); TouchAction touchAction = new TouchAction(device.getAppiumDriver()); touchAction .press(PointOption.point((location.x + size.width / 2), (location.y + size.height / 2))) .release() .perform(); }But it is unstable.
Appium 1.13 with iOS 12.1 is able to do
driver.findElement(By).click.
I also found element's click action with Appium 1.13.0 and iOS 12.2 is not reliable even it did work properly with Appium 1.13.0 and iOS 12.1. I will try to use customized tap action in the native app context
@lucaGazzola Can you post the logs for a run (as a link to a gist)?
https://gist.github.com/lucaGazzola/d5f061018dcd24bc729f52ad04022c29
@lucaGazzola For some reason the Safari Web Inspector is not returning any valid pages. Can you see the page if you inspect from within Safari?
is there any update on this issue? I have the same issue
@lucaGazzola For some reason the Safari Web Inspector is not returning any valid pages. Can you see the page if you inspect from within Safari?
@imurchie if I run the application in the simulator by hand, when I inspect it with the safari inspector it shows two contexts, both selectable

if I run the test case with appium, when the test reaches the same webview, the inspector shows both contexts, but one is greyed out and hence not selectable

Updates from my side. I have updated my command line tools and issue does not reproduce anymore.

@alexyablonskyi what do you see when you run xcode-select --version?
@lucaGazzola xcode-select version 2354
@alexyablonskyi we have the same version, the issue persists on my machine
What do you get for the tools version:
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 10.2.1.0.1.1554506761
volume: /
location: /
install-time: 1555619471
groups: com.apple.FindSystemFiles.pkg-group
hello any news for the above issue?
On Wed, May 22, 2019 at 4:45 PM Luca Gazzola notifications@github.com
wrote:
package-id: com.apple.pkg.CLTools_Executables
version: 10.2.1.0.1.1554506761
volume: /
location: /
install-time: 1555619471
groups: com.apple.FindSystemFiles.pkg-groupโ
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/appium/appium/issues/12614?email_source=notifications&email_token=AIM7SETZF4MH4XDJS37VE6LPWVE6NA5CNFSM4HL3AST2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV7C5BQ#issuecomment-494808710,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIM7SERWZBEW7NZVA5NARY3PWVE6NANCNFSM4HL3ASTQ
.
--
Vasiliki Giamarelou
Senior Software Engineer In Test
211 8008919 | thebeat.co
http://bit.ly/beatapp http://bit.ly/beatdroid
Beat is hiring: Learn more http://beat.careers
I have just resolved the issue by chance. First and foremost, there are indeed differences between iOS platform 12.1 and 12.2 (and even 12.3 I haven't tested it yet). From my side, please try to update the latest MacOS and Xcode (and Safari Technology Preview as above - if any). Then ensure removing and re-installing the latest Appium (1.13.0 thought) and WedriverIO (if you are using it). We even might need to do a fresh installation of brew formulae as diagnosed by appium-doctor. Hope it can help.
@DungHoangNVG I tried what you suggested but the issue persists on my machine
@lucaGazzola Would you be open to letting me use your app? You can send it to [email protected] and I will keep it all confidential. I understand if you cannot, but since I can't reproduce this with the apps available to me, it's difficult to make any headway.
Following as I am also running into the same issue
Our team has been through many issues that probably took days to resolve but after all, the underlying issue might come from your own environment preparation and installation. I'm sure that our team can run on sim iOS 12.2 without problems.
Very similar issue faced on latest iOS 12.3.1 with Appium v1.14.0-beta.1 (REV 39c03cfabcadf626aabee44a8cb512cfaa915f5f)
I have tried with:
and result of npm ls appium-remote-debugger
[email protected] /Users/ProvarMacBook/Provar-Appium/Appium-Source/appium-1.14.0
โโโฌ [email protected]
โ โโโฌ [email protected]
โ โ โโโ [email protected] deduped
โ โโโฌ [email protected]
โ โโโ [email protected] deduped
โโโฌ [email protected]
โ โโโ [email protected] deduped
โโโ [email protected]
โโโฌ [email protected]
โโโ [email protected] deduped
link to gist: https://gist.github.com/ashishyadav2020/435712349693d663d7d6509415239360
@imurchie do you want me to open a new issue for iOS 12.3.1?
@DungHoangNVG Could you post a gist with your appium log? I'm not sure our issues are related
@imurchie unfortunately I can't share the application, but I will try and reproduce it on another one
It's got to do with target maintenance, it seems. I will explore a little more.
Our team ๏ฟฝhas been through many issues that probably took days to resolve but after all, the underlying issue might come from your own environment preparation and installation. I'm sure that our team can run on sim iOS 12.2 without problems.
Could we get a hint on what we need to do to fix our environments? I've tried all the suggestions on this thread and still am getting the same response of 'Target not found'.
Xcode: 10.2.1 (10E1001)
MacOS: 10.14.5
iOS: 12.2 (simulator)
Appium source: 1.14.0-beta.1 (REV 39c03cf)
uninstall and install of appium@beta
I still cannot reproduce locally, but I have some ideas about the problem. Once a fix is published I will report here for you to try it out.
Thank you for the patience!
[email protected] has been published, with what I hope is some logic that will help. If you reinstall the beta you ought to get it. If you could try it and post here the results (logs, as a https://gist.github.com).
thank you @imurchie , I will try asap
My environment is:
[email protected] /Users/dungnguyen/appium-starter
โโโฌ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected] deduped
โโโฌ [email protected]
โโโฌ [email protected]
โโโ [email protected]
after updating to [email protected], It is now able to switch to WebView on iOS 12.3.1.
@imurchie Thank you so much man!
anyone struggling, I have tried following:
@imurchie when we can expect this in standard Appium release?
I still experience the same problem, but the error message seems different from the one I used to get. Here you can find the full appium log.
@lucaGazzola This is a different issue than some. Can you tell me the type of webview it is that is supposed to be there? UiWebView? WkWebView? SafariViewController? That sort if thing. Any details that might help me reproduce and, hopefully, fix.
Thanks so much for digging into this! I'm seeing the same behavior as @lucaGazzola. I'm still unable to switch contexts, with the new error message.
@lfalkner What is the new error message? Can you post the logs, as a link to a https://gist.github.com? I'd love to get this working for everyone!
@lucaGazzola This is a different issue than some. Can you tell me the type of webview it is that is supposed to be there? UiWebView? WkWebView? SafariViewController? That sort if thing. Any details that might help me reproduce and, hopefully, fix.
@imurchie WkWebView
@lfalkner Can you provide the _full_ logs? I'd like to see if the targets are coming in and we are losing them somehow. Or if it is never being reported at all. Which would break some assumptions I've made.
@lucaGazzola Ok. I'll modify my tests. Thanks!
@lucaGazzola Well, it's not the _fact_ of it being a WkWebView, since I can run tests against one. :(
Now I guess we move to questions of ios-webkit-debug-proxy and its dependencies.
What is the output of:
brew list --versions usbmuxdbrew list --versions ios-webkit-debug-proxybrew list --versions libimobiledeviceusbmuxd HEAD-873252d_1ios-webkit-debug-proxy HEAD-fa3e206libimobiledevice HEAD-eea4f1b_3I guess you also installed ideviceinstaller. A hint from me, even though the installation of ideviceinstaller will also deliver its dependency libimobiledevice (might be the latest), another sole installation of libimobiledevice is still necessary to rebuild utility with the latest HEAD.
@imurchie
usbmuxd 1.0.10_1
ios-webkit-debug-proxy 1.8.4
libimobiledevice 1.2.0_3
@lucaGazzola Can you try upgrading these, to HEAD on all? There have been updates to them to account for developments in recent iOS versions.
brew uninstall ios-webkit-debug-proxy && brew install ios-webkit-debug-proxy --HEAD and such for all three?
@imurchie just to follow up, I'm able to automate on a physical device, using the same setup, but I'm not able to automate using a simulator. I'm not sure if that helps provide any insight.
I tried updating to head, now I have these versions for the dependencies you recommended:
usbmuxd HEAD-ca24570_1
ios-webkit-debug-proxy HEAD-fa3e206
libimobiledevice HEAD-ddba0b5_3
but the problem still persist:
[debug] [W3C (d843ce6d)] Calling AppiumDriver.getContexts() with args: ["d843ce6d-de13-4359-ad81-630edf1a4ea4"]
[debug] [XCUITest] Executing command 'getContexts'
[debug] [iOS] Getting list of available contexts
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Selecting by url: false
[debug] [RemoteDebugger] Selecting application
[debug] [RemoteDebugger] Current applications available:
[debug] [RemoteDebugger] Application: 'PID:83233'
[debug] [RemoteDebugger] id: "PID:83233"
[debug] [RemoteDebugger] isProxy: false
[debug] [RemoteDebugger] name: "xx.com"
[debug] [RemoteDebugger] bundleId: "com.xx.x.x"
[debug] [RemoteDebugger] hostId: undefined
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray:
[debug] [RemoteDebugger] - id: 2
[debug] [RemoteDebugger] title: "title"
[debug] [RemoteDebugger] url: "url"
[debug] [RemoteDebugger] isKey: true
[debug] [RemoteDebugger] Application: 'PID:83295'
[debug] [RemoteDebugger] id: "PID:83295"
[debug] [RemoteDebugger] isProxy: true
[debug] [RemoteDebugger] name: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] bundleId: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] hostId: "PID:83233"
[debug] [RemoteDebugger] isActive: 1
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray: []
[debug] [RemoteDebugger] Found app id key 'PID:83233' for bundle 'com.xx.x.x'
[debug] [RemoteDebugger] Found separate bundleId 'com.apple.WebKit.WebContent' acting as proxy for 'com.xx.x.x', with app id 'PID:83295'
[debug] [RemoteDebugger] Trying out the possible app ids: PID:83233, PID:83295
[debug] [RemoteDebugger] Selecting app PID:83233 (try #1 of 20)
[debug] [RemoteDebugger] Current applications available:
[debug] [RemoteDebugger] Application: 'PID:83233'
[debug] [RemoteDebugger] id: "PID:83233"
[debug] [RemoteDebugger] isProxy: false
[debug] [RemoteDebugger] name: "xx.com"
[debug] [RemoteDebugger] bundleId: "com.xx.x.x"
[debug] [RemoteDebugger] hostId: undefined
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray:
[debug] [RemoteDebugger] - id: 2
[debug] [RemoteDebugger] title: "title"
[debug] [RemoteDebugger] url: "url"
[debug] [RemoteDebugger] isKey: true
[debug] [RemoteDebugger] Application: 'PID:83295'
[debug] [RemoteDebugger] id: "PID:83295"
[debug] [RemoteDebugger] isProxy: true
[debug] [RemoteDebugger] name: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] bundleId: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] hostId: "PID:83233"
[debug] [RemoteDebugger] isActive: 1
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray: []
[debug] [RemoteDebugger] Page changed: {
[debug] [RemoteDebugger] "1": {
[debug] [RemoteDebugger] "WIRPageIdentifierKey": 1,
[debug] [RemoteDebugger] "WIRTitleKey": "JSContext",
[debug] [RemoteDebugger] "WIRTypeKey": "WIRTypeJavaScript"
[debug] [RemoteDebugger] },
[debug] [RemoteDebugger] "2": {
[debug] [RemoteDebugger] "WIRTitleKey": "title",
[debug] [RemoteDebugger] "WIRTypeKey": "WIRTypeWeb",
[debug] [RemoteDebugger] "WIRURLKey": "url",
[debug] [RemoteDebugger] "WIRPageIdentifierKey": 2,
[debug] [RemoteDebugger] "WIRConnectionIdentifierKey": "8e90897a-58c0-494b-9e98-0c65534c4b56"
[debug] [RemoteDebugger] }
[debug] [RemoteDebugger] }
[debug] [RemoteDebugger] Current applications available:
[debug] [RemoteDebugger] Application: 'PID:83233'
[debug] [RemoteDebugger] id: "PID:83233"
[debug] [RemoteDebugger] isProxy: false
[debug] [RemoteDebugger] name: "xx.com"
[debug] [RemoteDebugger] bundleId: "com.xx.x.x"
[debug] [RemoteDebugger] hostId: undefined
[debug] [RemoteDebugger] isActive: 2
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray:
[debug] [RemoteDebugger] - id: 2
[debug] [RemoteDebugger] title: "title"
[debug] [RemoteDebugger] url: "url"
[debug] [RemoteDebugger] isKey: true
[debug] [RemoteDebugger] Application: 'PID:83295'
[debug] [RemoteDebugger] id: "PID:83295"
[debug] [RemoteDebugger] isProxy: true
[debug] [RemoteDebugger] name: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] bundleId: "com.apple.WebKit.WebContent"
[debug] [RemoteDebugger] hostId: "PID:83233"
[debug] [RemoteDebugger] isActive: 1
[debug] [RemoteDebugger] isAutomationEnabled: false
[debug] [RemoteDebugger] pageArray: []
[debug] [RemoteDebugger] Page changed: {
[debug] [RemoteDebugger] "1": {
[debug] [RemoteDebugger] "WIRPageIdentifierKey": 1,
[debug] [RemoteDebugger] "WIRTitleKey": "JSContext",
[debug] [RemoteDebugger] "WIRTypeKey": "WIRTypeJavaScript"
[debug] [RemoteDebugger] },
[debug] [RemoteDebugger] "2": {
[debug] [RemoteDebugger] "WIRTitleKey": "title",
[debug] [RemoteDebugger] "WIRTypeKey": "WIRTypeWeb",
[debug] [RemoteDebugger] "WIRURLKey": "url",
[debug] [RemoteDebugger] "WIRPageIdentifierKey": 2,
[debug] [RemoteDebugger] "WIRConnectionIdentifierKey": "8e90897a-58c0-494b-9e98-0c65534c4b56"
[debug] [RemoteDebugger] }
[debug] [RemoteDebugger] }
[debug] [RemoteDebugger] Received page change notice for app 'PID:83295' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Received page change notice for app 'PID:83295' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Received page change notice for app 'PID:83295' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Received page change notice for app 'PID:83295' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Received page change notice for app 'PID:83295' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Received page change notice for app 'PID:83295' but the listing has not changed. Ignoring.
(node:82197) UnhandledPromiseRejectionWarning: Error: No targets found, unable to communicate with device
at /usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/rpc-client.js:34:15
at fn (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:35:19)
at fn (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:18:19)
(node:82197) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:82197) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[debug] [RemoteDebugger] Received page change notice for app 'PID:83295' but the listing has not changed. Ignoring.
[debug] [RemoteDebugger] Received page change notice for app 'PID:83295' but the listing has not changed. Ignoring.
@ashishyadav2020 is this the same issue you faced?
@abilashkar for #12698, you mentioned that switch between WEBVIEW and NATIVE is happening (though your Appium logs having very much similar exception).
But here it is problem with initial switch to WEBVIEW.
Hi All,
We are experiencing the same issue. Did any one find a work around or resolution for the same. If yes, can you please share. It helps and thanks in advance.
@chandra306 yes we have resolved this issue please refer https://github.com/appium/appium/issues/12698
Thank you abilashkar.
wonder if there are any news on this? maybe some downgrade options?
Had to reinstall (unrelated to this issue) all the macos and now found experiencing this - also with [email protected] and ios-webkit-debug-proxy/HEAD-bbac872
sem-good news - can confirm that afer installing iOS 12.1 all works good which is acceptable for me for the time being...
Well, that is not the native context. It is just another app within the web inspector.
I'm concerned, seeing the full logs, that certain information is missing. I expect some debugging information to be there, before the actual contexts are seen:
[HTTP] --> GET /wd/hub/session/cd005e26-a83b-4b2c-b329-2d9566099260/contexts [HTTP] {} [debug] [MJSONWP (cd005e26)] Calling AppiumDriver.getContexts() with args: ["cd005e26-a83b-4b2c-b329-2d9566099260"] [debug] [XCUITest] Executing command 'getContexts' [debug] [iOS] Getting list of available contexts [debug] [iOS] Retrieving contexts and views [debug] [iOS] Selecting by url: false [debug] [RemoteDebugger] useNewSafari --> false [debug] [RemoteDebugger] Checking which communication style to use (non-Safari on platform version '12.2') [debug] [RemoteDebugger] Platform version equal or higher than '12.2': true [RemoteDebugger] Setting communication protocol: using full Web Inspector protocol communication [debug] [RemoteDebugger] Connecting to remote debugger through unix domain socket: '/private/tmp/com.apple.launchd.52bYesVPQJ/com.apple.webinspectord_sim.socket' [debug] [RemoteDebugger] Debugger socket connected [debug] [RemoteDebugger] Sending connection key request [debug] [RemoteDebugger] Sending '_rpc_reportIdentifier:' message to remote debugger (id: 0)What version of
appium-remote-debuggeris being used (runnpm ls -g appium-remote-debugger)?
have you solve this issue ? we face same issue
Ok. The problem is the last entry,
[email protected]. This should not be there (it is not a direct dependency ofappium, and is a version too early to handle iOs 12.2 correctly.Can you try to uninstall and reinstall Appium?
yes we did but still we face same issue
/usr/local/lib
โโโฌ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โโโฌ [email protected]
โโโ [email protected]
Appium log
AutomationiMac:~ automation_svc$ appium -U 3b5d0182e94c882e5f4bd220a513716a7b65494d --webkit-debug-proxy-port 27753
[Appium] Welcome to Appium v1.15.1
[Appium] Non-default server args:
[Appium] udid: 3b5d0182e94c882e5f4bd220a513716a7b65494d
[Appium] Deprecated server args:
[Appium] -U,--udid => --default-capabilities '{"udid":"3b5d0182e94c882e5f4bd220a513716a7b65494d"}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] udid: 3b5d0182e94c882e5f4bd220a513716a7b65494d
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"platform":"Mac","platformVersion":"10.15.1","platformName":"iOS","automationName":"XCUITest","deviceName":"IPhone 6S","udid":"3b5d0182e94c882e5f4bd220a513716a7b65494d","newCommandTimeout":360,"wdaLocalPort":"8200","wdaConnectionTimeout":600000,"usePrebuiltWDA":true,"showXcodeLog":true,"startIWDP":true,"browserName":"Safari"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"platform":"Mac","platformVersion":"10.15.1","platformName":"iOS","automationName":"XCUITest","deviceName":"IPhone 6S","udid":"3b5d0182e94c882e5f4bd220a513716a7b65494d","newCommandTimeout":360,"wdaLocalPort":"8200","wdaConnectionTimeout":600000,"usePrebuiltWDA":true,"showXcodeLog":true,"startIWDP":true,"browserName":"Safari"},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1574427420363 (18:27:00 GMT+0530 (India Standard Time))
[Appium] Appium v1.15.1 creating new XCUITestDriver (v2.133.1) session
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {
[debug] [BaseDriver] "udid": "3b5d0182e94c882e5f4bd220a513716a7b65494d",
[debug] [BaseDriver] "platform": "Mac",
[debug] [BaseDriver] "platformVersion": "10.15.1",
[debug] [BaseDriver] "platformName": "iOS",
[debug] [BaseDriver] "automationName": "XCUITest",
[debug] [BaseDriver] "deviceName": "IPhone 6S",
[debug] [BaseDriver] "newCommandTimeout": 360,
[debug] [BaseDriver] "wdaLocalPort": "8200",
[debug] [BaseDriver] "wdaConnectionTimeout": 600000,
[debug] [BaseDriver] "usePrebuiltWDA": true,
[debug] [BaseDriver] "showXcodeLog": true,
[debug] [BaseDriver] "startIWDP": true,
[debug] [BaseDriver] "browserName": "Safari"
[debug] [BaseDriver] }
[BaseDriver] Capability 'wdaLocalPort' changed from string ('8200') to integer (8200). This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[BaseDriver] platform
[BaseDriver] Session created with session id: 3bddc3b2-0a59-4ae8-a0ee-ec9907e823b8
[debug] [XCUITest] Current user: 'automation_svc'
[debug] [XCUITest] Available devices: 3b5d0182e94c882e5f4bd220a513716a7b65494d
[debug] [XCUITest] Creating iDevice object with udid '3b5d0182e94c882e5f4bd220a513716a7b65494d'
[XCUITest] Determining device to run tests on: udid: '3b5d0182e94c882e5f4bd220a513716a7b65494d', real device: true
[XCUITest] Normalized platformVersion capability value '10.15.1' to '10.15'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1574427426878 (18:27:06 GMT+0530 (India Standard Time))
[XCUITest] Safari test requested
[debug] [BaseDriver] Event 'appConfigured' logged at 1574427426878 (18:27:06 GMT+0530 (India Standard Time))
[debug] [BaseDriver] Event 'resetStarted' logged at 1574427426879 (18:27:06 GMT+0530 (India Standard Time))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [BaseDriver] Event 'resetComplete' logged at 1574427426879 (18:27:06 GMT+0530 (India Standard Time))
[debug] [XCUITest] Crash reports root '/Users/automation_svc/Library/Logs/CrashReporter/MobileDevice/iPhone' does not exist. Got nothing to gather.
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1574427427130 (18:27:07 GMT+0530 (India Standard Time))
[XCUITest] Setting up real device
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[debug] [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8200 have been found
[DevCon Factory] Requesting connection for device 3b5d0182e94c882e5f4bd220a513716a7b65494d on local port 8200, device port 8200
[debug] [DevCon Factory] Cached connections count: 0
[DevCon Factory] Port #8200 is busy
[DevCon Factory] Successfully requested the connection for 3b5d0182e94c882e5f4bd220a513716a7b65494d:8200
[debug] [XCUITest] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8200/status] with no body
[debug] [WD Proxy] Got response with status 200: {
[debug] [WD Proxy] "value" : {
[debug] [WD Proxy] "message" : "WebDriverAgent is ready to accept commands",
[debug] [WD Proxy] "state" : "success",
[debug] [WD Proxy] "os" : {
[debug] [WD Proxy] "name" : "iOS",
[debug] [WD Proxy] "version" : "13.1.2",
[debug] [WD Proxy] "sdkVersion" : "13.0"
[debug] [WD Proxy] },
[debug] [WD Proxy] "ios" : {
[debug] [WD Proxy] "simulatorVersion" : "13.1.2",
[debug] [WD Proxy] "ip" : "10.140.7.8"
[debug] [WD Proxy] },
[debug] [WD Proxy] "ready" : true,
[debug] [WD Proxy] "build" : {
[debug] [WD Proxy] "upgradedAt" : "1573826988619",
[debug] [WD Proxy] "time" : "Nov 15 2019 19:51:51",
[debug] [WD Proxy] "productBundleIdentifier" : "com.facebook.WebDriverAgentRunner"
[debug] [WD Proxy] }
[debug] [WD Proxy] },
[debug] [WD Proxy] "sessionId" : "4B2252B0-9C75-40A0-AB31-C4D6AF3199E9"
[debug] [WD Proxy] }
[debug] [XCUITest] Upgrade timestamp of the currently bundled WDA: 1573826988619
[debug] [XCUITest] Upgrade timestamp of the WDA on the device: 1573826988619
[XCUITest] Will reuse previously cached WDA instance at 'http://localhost:8200/' with 'com.facebook.WebDriverAgentRunner'. Set the wdaLocalPort capability to a value different from 8200 if this is an undesired behavior.
[debug] [XCUITest] Trying to start WebDriverAgent 1 times with 10000ms interval
[debug] [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1574427427477 (18:27:07 GMT+0530 (India Standard Time))
[XCUITest] Using provided WebdriverAgent at 'http://localhost:8200/'
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8200/status] with no body
[debug] [WD Proxy] Got response with status 200: {
[debug] [WD Proxy] "value" : {
[debug] [WD Proxy] "message" : "WebDriverAgent is ready to accept commands",
[debug] [WD Proxy] "state" : "success",
[debug] [WD Proxy] "os" : {
[debug] [WD Proxy] "name" : "iOS",
[debug] [WD Proxy] "version" : "13.1.2",
[debug] [WD Proxy] "sdkVersion" : "13.0"
[debug] [WD Proxy] },
[debug] [WD Proxy] "ios" : {
[debug] [WD Proxy] "simulatorVersion" : "13.1.2",
[debug] [WD Proxy] "ip" : "10.140.7.8"
[debug] [WD Proxy] },
[debug] [WD Proxy] "ready" : true,
[debug] [WD Proxy] "build" : {
[debug] [WD Proxy] "upgradedAt" : "1573826988619",
[debug] [WD Proxy] "time" : "Nov 15 2019 19:51:51",
[debug] [WD Proxy] "productBundleIdentifier" : "com.facebook.WebDriverAgentRunner"
[debug] [WD Proxy] }
[debug] [WD Proxy] },
[debug] [WD Proxy] "sessionId" : "4B2252B0-9C75-40A0-AB31-C4D6AF3199E9"
[debug] [WD Proxy] }
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1574427427489 (18:27:07 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/session' to command name 'createSession'
[debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8200/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}
[debug] [WD Proxy] Got response with status 200: {"value":{"sessionId":"904C4909-9799-447E-BAC4-5B64751BAA89","capabilities":{"device":"iphone","browserName":"Safari","sdkVersion":"13.1.2","CFBundleIdentifier":"com.apple.mobilesafari"}},"sessionId":"904C4909-9799-447E-BAC4-5B64751BAA89"}
[WD Proxy] Determined the downstream protocol as 'W3C'
[debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1574427489800 (18:28:09 GMT+0530 (India Standard Time))
[debug] [BaseDriver] Event 'wdaStarted' logged at 1574427489801 (18:28:09 GMT+0530 (India Standard Time))
[XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[debug] [BaseDriver] Event 'orientationSet' logged at 1574427489801 (18:28:09 GMT+0530 (India Standard Time))
[debug] [XCUITest] Waiting for initial webview
[debug] [iOS] Navigating to most recently opened webview
[debug] [iOS] Retrieving contexts and views
[debug] [XCUITest] Selecting by url: false
[RemoteDebugger] Remote Debugger version 5.7.0
[debug] [RemoteDebugger] useNewSafari --> false
[debug] [RemoteDebugger] Checking which communication style to use (Safari on platform version '10.15')
[debug] [RemoteDebugger] Platform version equal or higher than '12.2': false
[RemoteDebugger] Setting communication protocol: using full Web Inspector protocol communication
[debug] [RemoteDebugger] Sending connection key request
[debug] [RemoteDebugger] Sending '_rpc_reportIdentifier:' message (id: 0)
[HTTP] <-- POST /wd/hub/session - - ms - -
[HTTP]
[HTTP] --> POST /wd/hub/session
Please try the latest beta of Appium (version 1.16.0-beta.2). There has been _a lot_ of work getting this fixed.
Please try the latest beta of Appium (version 1.16.0-beta.2). There has been _a lot_ of work getting this fixed.
Thanks for reply
so it means "The HTTP request to the remote WebDriver server for URL http://10.140.8.127:4723/wd/hub/session timed out after 300 seconds." this issue resolved in latest Appium . okie will try and inform you on same " thanks for quick ans
thanks It's done