Unable to run tests on IOS 14 simulator
See original GitHub issueThe problem
I have a selenium grid with 3 IOS simulators (2x 12.1, 1x14.0). Only the 14.0 simulator exhibits the following behaviour
Environment
- Appium version (or git revision) that exhibits the issue: 1.18.3
- Last Appium version that did not exhibit the issue (if applicable): N/A
- Desktop OS/version used to run Appium: N/A
- Node.js version (unless using Appium.app|exe): 12.18.2
- Npm or Yarn package manager: nom
- Mobile platform/version under test: Safari on IOS 14.0
- Real device or emulator/simulator: simulator
- Appium CLI or Appium.app|exe: CLI Xcode 12.0.1 (12A7300)
Details
WDA installed successfully on IOS 14.0 simulator but no navigation to target web site is performed. The same logic works perfectly on IOS 12.1 simulator. The following error occurs:
**
2020-10-22 11:18:48:599 [XCUITest] Skipping setting of the initial display orientation. Set the “orientation” capability to either “LANDSCAPE” or “PORTRAIT”, if this is an undesired behavior.
2020-10-22 11:18:48:599 [BaseDriver] Event ‘orientationSet’ logged at 1603365528599 (12:18:48 GMT+0100 (British Summer Time))
2020-10-22 11:18:48:928 [HTTP] --> GET /welcome
2020-10-22 11:18:48:928 [HTTP] {}
2020-10-22 11:18:48:936 [HTTP] Sending welcome response with params: {“message”:“Let’s browse!”}
2020-10-22 11:18:48:938 [HTTP] <-- GET /welcome 200 11 ms - 195
2020-10-22 11:18:48:939 [HTTP]
2020-10-22 11:18:49:020 [HTTP] <-- GET /favicon.ico 200 30 ms - 1150
2020-10-22 11:18:49:021 [HTTP]
2020-10-22 11:18:49:203 [simctl] Error running ‘spawn’: An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405):
Invalid device state
2020-10-22 11:18:49:204 [XCUITest] {}
2020-10-22 11:18:49:205 [WD Proxy] Matched ‘/session/530896b9-b8f6-45a2-aab7-55e485f9d703’ to command name ‘deleteSession’
2020-10-22 11:18:49:205 [WD Proxy] Proxying [DELETE /session/530896b9-b8f6-45a2-aab7-55e485f9d703] to [DELETE http://127.0.0.1:8100/session/75BFEAA0-9570-467B-927E-C239B7FF71A9] with no body
2020-10-22 11:18:50:256 [WD Proxy] Got response with status 200: {“value”:null,“sessionId”:null}
2020-10-22 11:18:50:257 [DevCon Factory] Releasing connections for 24E3FDDC-BA71-417C-A27A-77250C30F3D4 device on any port number
2020-10-22 11:18:50:257 [DevCon Factory] Found cached connections to release: [“24E3FDDC-BA71-417C-A27A-77250C30F3D4:8100”]
2020-10-22 11:18:50:257 [DevCon Factory] Cached connections count: 0
2020-10-22 11:18:50:257 [XCUITest] Not clearing log files. Use clearSystemFiles
capability to turn on.
2020-10-22 11:18:50:258 [BaseDriver] Event ‘newSessionStarted’ logged at 1603365530258 (12:18:50 GMT+0100 (British Summer Time))
2020-10-22 11:18:50:261 [W3C] Encountered internal error running command: Error: Safari cannot open ‘http://10.203.48.24:55704/welcome’ after 0.429s because of: Error running ‘spawn’: An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405):
2020-10-22 11:18:50:261 [W3C] Invalid device state
2020-10-22 11:18:50:261 [W3C] at SimulatorXcode11_4.openUrl (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-ios-simulator/lib/simulator-xcode-10.js:55:13)**
Deleting simulator and creating a new one did not help. Logs file:
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (1 by maintainers)
Top GitHub Comments
Thanks @KazuCocoa I will try installation of appium@beta. I was asking as I have a feeling that using npm install appium@beta resulted in installation of appium 2.0 beta last time I tried. I could be wrong though, let me get back to you on the this one. Thanks
I am having same issue please give us solution