Coder Social home page Coder Social logo

Running: setGeoLocation, report unexpected data: {"Error":"InvalidService","Request":"StartService","Service":"com.apple.dt.simulatelocation"} (xcode: 15.3, iOS:17.4) about appium HOT 8 CLOSED

wuyan-grabtaxi avatar wuyan-grabtaxi commented on June 9, 2024
Running: setGeoLocation, report unexpected data: {"Error":"InvalidService","Request":"StartService","Service":"com.apple.dt.simulatelocation"} (xcode: 15.3, iOS:17.4)

from appium.

Comments (8)

KazuCocoa avatar KazuCocoa commented on June 9, 2024 1

Based on my experience, it could take time (~ 10 sec) to reflect on the simulated location. (I tested with com.apple.Maps) I also met a case in which I needed to bring the test app to the background by activating the springboard and re-activating the test app again. It could vary system OS state I guess though.

from appium.

wuyan-grabtaxi avatar wuyan-grabtaxi commented on June 9, 2024 1

Thanks KazuCocoa,
mykola-mokhnach, I resolve the issue at last. In my test app, it also have a function to mock location, when i disable it, appium mock location works.
Thank you for your help

from appium.

KazuCocoa avatar KazuCocoa commented on June 9, 2024

[email protected]

Is it XCUITest driver?
Please attatch the full appium server log.

The latest driver may have logs and proxies to mobile:setSimulatedLocation internally
https://github.com/appium/appium-xcuitest-driver/blob/ec3b4c7032bbd85f12f634b730ff7fa8c798021d/lib/commands/location.js#L86-L87

from appium.

wuyan-grabtaxi avatar wuyan-grabtaxi commented on June 9, 2024

�[38;5;32m[XCUITestDriver@a603 (883eabd3)]�[0m Responding to client with driver.createSession() result: {"capabilities":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"platformName":"iOS","autoAcceptAlerts":true,"autoDismissAlerts":true,"autoGrantPermissions":true,"automationName":"XCUITest","deviceName":"iPhone","noReset":true,"agentPath":"/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj","bootStrapPath":"/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent","platformVersion":"15.7","udid":"00008120-000418893A6BC01E","bundle_id":"com.grab.passenger.dogfood.debug"}}
�[38;5;0m[HTTP]�[0m �[37m<-- POST /wd/hub/session �[39m�[32m200�[39m �[90m356 ms - 748�[39m
�[38;5;0m[HTTP]�[0m �[90m�[39m
�[38;5;0m[HTTP]�[0m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/883eabd3-d03a-4c01-9c6f-510efcb2b461/location�[39m
�[38;5;0m[HTTP]�[0m �[90m{"location":{"latitude":"1.264698","longitude":"103.822346","altitude":10}}�[39m
�[38;5;32m[XCUITestDriver@a603 (883eabd3)]�[0m Calling AppiumDriver.setGeoLocation() with args: [{"latitude":"1.264698","longitude":"103.822346","altitude":10},"883eabd3-d03a-4c01-9c6f-510efcb2b461"]
�[38;5;32m[XCUITestDriver@a603 (883eabd3)]�[0m Executing command 'setGeoLocation'
�[38;5;32m[XCUITestDriver@a603 (883eabd3)]�[0m Encountered internal error running command: Error: Unexpected data: {"Error":"InvalidService","Request":"StartService","Service":"com.apple.dt.simulatelocation"}
�[38;5;32m[XCUITestDriver@a603 (883eabd3)]�[0m at Lockdown.startService (/Users/xx/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-ios-device/lib/lockdown/index.js:104:13)
�[38;5;32m[XCUITes~tDriver@a603 (883eabd3)]�[0m at startService (/Users/xx/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-ios-device/lib/services.js:119:21)
�[38;5;32m[XCUITestDriver@a603 (883eabd3)]�[0m at Object.startSimulateLocationService (/Users/xx/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-ios-device/lib/services.js:27:18)
�[38;5;32m[XCUITestDriver@a603 (883eabd3)]�[0m at XCUITestDriver.setGeoLocation (/Users/xx/.appium/node_modules/appium-xcuitest-driver/lib/commands/location.js:70:23)
�[38;5;0m[HTTP]�[0m �[37m<-- POST /wd/hub/session/883eabd3-d03a-4c01-9c6f-510efcb2b461/location

from appium.

KazuCocoa avatar KazuCocoa commented on June 9, 2024

Could you attach the full log? The log has various information to guess your environment for us.

from appium.

KazuCocoa avatar KazuCocoa commented on June 9, 2024

Btw,

It is recommended for iOS 17+ real devices to simulate the device location.

https://appium.github.io/appium-xcuitest-driver/latest/reference/execute-methods/#mobile-setsimulatedlocation

The latest XCUITest driver handles iOS 17+ case internally as #19893 (comment) . If not, please use the mobile:setSimulatedLocation for iOS 17.

from appium.

wuyan-grabtaxi avatar wuyan-grabtaxi commented on June 9, 2024

I found at first i set the platformVersion as 15.7, so it does not use mobile:setSimulatedLocation, just now, i change to 17.4, it does not report above issue, but i found it seems the set location function does not take effect: here is the log:

�[35m[Appium]�[39m Welcome to Appium v2.5.1 (REV d7d4c8266210c024b93a450a7d357cec0b46a1bb)
�[35m[Appium]�[39m Non-default server args:
�[35m[Appium]�[39m { basePath: �[32m'/wd/hub'�[39m, port: �[33m4725�[39m }
�[35m[Appium]�[39m The autodetected Appium home path: /Users/xx/.appium
�[35m[Appium]�[39m Attempting to load driver xcuitest...
�[35m[Appium]�[39m Attempting to load driver uiautomator2...
�[35m[Appium]�[39m Requiring driver at /Users/xx/.appium/node_modules/appium-xcuitest-driver/build/index.js
�[35m[Appium]�[39m Requiring driver at /Users/xx/.appium/node_modules/appium-uiautomator2-driver/build/index.js
�[35m[Appium]�[39m AndroidUiautomator2Driver has been successfully loaded in 0.898s
�[35m[Appium]�[39m XCUITestDriver has been successfully loaded in 0.899s
�[35m[Appium]�[39m Appium REST http interface listener started on http://0.0.0.0:4725/wd/hub
�[35m[Appium]�[39m You can provide the following URLs in your client code to connect to this server:
�[35m[Appium]�[39m http://127.0.0.1:4725/wd/hub (only accessible from the same host)
�[35m[Appium]�[39m http://10.6.17.75:4725/wd/hub
�[35m[Appium]�[39m http://10.28.164.39:4725/wd/hub
�[35m[Appium]�[39m http://169.254.51.75:4725/wd/hub
�[35m[Appium]�[39m Available drivers:
�[35m[Appium]�[39m - [email protected] (automationName 'XCUITest')
�[35m[Appium]�[39m - [email protected] (automationName 'UiAutomator2')
�[35m[Appium]�[39m No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use.
�[38;5;0m[HTTP]�[0m Request idempotency key: 71e68b24-fd7f-4d16-9346-1f62d6c5acae
�[38;5;0m[HTTP]�[0m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session�[39m
�[38;5;0m[HTTP]�[0m �[90m{"capabilities":{"firstMatch":[{"appium:autoAcceptAlerts":true,"appium:autoDismissAlerts":true,"appium:autoGrantPermissions":true,"appium:automationName":"XCUITest","appium:deviceName":"iPhone","platformName":"iOS","appium:noReset":true,"appium:agentPath":"/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj","appium:bootStrapPath":"/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent","appium:platformVersion":"17.4","appium:udid":"00008120","appium:bundle_id":"hihi"}]},"desiredCapabilities":{"autoAcceptAlerts":true,"autoDismissAlerts":true,"autoGrantPermissions":true,"automationName":"XCUITest","deviceName":"iPhone","platformName":"iOS","noReset":true,"agentPath":"/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj","bootStrapPath":"/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent","platformVersion":"17.4","udid":"00008120-00041...�[39m
�[38;5;16m[AppiumDriver@03e1]�[0m Calling AppiumDriver.createSession() with args: [{"autoAcceptAlerts":true,"autoDismissAlerts":true,"autoGrantPermissions":true,"automationName":"XCUITest","deviceName":"iPhone","platformName":"iOS","noReset":true,"agentPath":"/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj","bootStrapPath":"/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent","platformVersion":"17.4","udid":"00008120","bundle_id":"hihi"},null,{"firstMatch":[{"appium:autoAcceptAlerts":true,"appium:autoDismissAlerts":true,"appium:autoGrantPermissions":true,"appium:automationName":"XCUITest","appium:deviceName":"iPhone","platformName":"iOS","appium:noReset":true,"appium:agentPath":"/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj","appium:bootStrapPath":"/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent","appium:platformVersion":"17.4","appium:udid":"00008120","appium:bundle_id":"ddd..
�[38;5;16m[AppiumDriver@03e1]�[0m Event 'newSessionRequested' logged at 1710398420512 (14:40:20 GMT+0800 (China Standard Time))
�[35m[Appium]�[39m Attempting to find matching driver for automationName 'XCUITest' and platformName 'iOS'
�[35m[Appium]�[39m The 'xcuitest' driver was installed and matched caps.
�[35m[Appium]�[39m Will require it at /Users/xx/.appium/node_modules/appium-xcuitest-driver
�[35m[Appium]�[39m Requiring driver at /Users/xx/.appium/node_modules/appium-xcuitest-driver/build/index.js
�[38;5;16m[AppiumDriver@03e1]�[0m Appium v2.5.1 creating new XCUITestDriver (v5.11.0) session
�[38;5;16m[AppiumDriver@03e1]�[0m Checking BaseDriver versions for Appium and XCUITestDriver
�[38;5;16m[AppiumDriver@03e1]�[0m Appium's BaseDriver version is 9.5.2
�[38;5;16m[AppiumDriver@03e1]�[0m XCUITestDriver's BaseDriver version is 9.5.2
�[38;5;32m[XCUITestDriver@4e4a]�[0m Creating session with W3C capabilities: {
�[38;5;32m[XCUITestDriver@4e4a]�[0m "alwaysMatch": {
�[38;5;32m[XCUITestDriver@4e4a]�[0m "platformName": "iOS",
�[38;5;32m[XCUITestDriver@4e4a]�[0m "appium:autoAcceptAlerts": true,
�[38;5;32m[XCUITestDriver@4e4a]�[0m "appium:autoDismissAlerts": true,
�[38;5;32m[XCUITestDriver@4e4a]�[0m "appium:autoGrantPermissions": true,
�[38;5;32m[XCUITestDriver@4e4a]�[0m "appium:automationName": "XCUITest",
�[38;5;32m[XCUITestDriver@4e4a]�[0m "appium:deviceName": "iPhone",
�[38;5;32m[XCUITestDriver@4e4a]�[0m "appium:noReset": true,
�[38;5;32m[XCUITestDriver@4e4a]�[0m "appium:agentPath": "/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj",
�[38;5;32m[XCUITestDriver@4e4a]�[0m "appium:bootStrapPath": "/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent",
�[38;5;32m[XCUITestDriver@4e4a]�[0m "appium:platformVersion": "17.4",
�[38;5;32m[XCUITestDriver@4e4a]�[0m "appium:udid": "00008120",
�[38;5;32m[XCUITestDriver@4e4a]�[0m "appium:bundle_id": "hihi"
�[38;5;32m[XCUITestDriver@4e4a]�[0m },
�[38;5;32m[XCUITestDriver@4e4a]�[0m "firstMatch": [
�[38;5;32m[XCUITestDriver@4e4a]�[0m {}
�[38;5;32m[XCUITestDriver@4e4a]�[0m ]
�[38;5;32m[XCUITestDriver@4e4a]�[0m }
�[38;5;32m[XCUITestDriver@4e4a]�[0m The following provided capabilities were not recognized by this driver:
�[38;5;32m[XCUITestDriver@4e4a]�[0m autoGrantPermissions
�[38;5;32m[XCUITestDriver@4e4a]�[0m bootStrapPath
�[38;5;32m[XCUITestDriver@4e4a]�[0m bundle_id
�[38;5;32m[XCUITestDriver@4e4a]�[0m The desired capabilities include neither an app nor a bundleId. WebDriverAgent will be started without the default app
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Session created with session id: 643eeb6c-87e7-4c23-b65c-8ee4854a05a5
�[38;5;48m[XCUITest]�[0m Current user: 'xx'
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Available devices: 00008120
�[38;5;48m[XCUITest]�[0m Creating iDevice object with udid '00008120'
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Determining device to run tests on: udid: '00008120', real device: true
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Event 'xcodeDetailsRetrieved' logged at 1710398420561 (14:40:20 GMT+0800 (China Standard Time))
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Event 'appConfigured' logged at 1710398420561 (14:40:20 GMT+0800 (China Standard Time))
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Event 'resetStarted' logged at 1710398420561 (14:40:20 GMT+0800 (China Standard Time))
�[38;5;48m[XCUITest]�[0m Reset: fullReset not set. Leaving as is
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Event 'resetComplete' logged at 1710398420561 (14:40:20 GMT+0800 (China Standard Time))
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Using WDA path: '/Users/xx/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Using WDA agent: '/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
�[38;5;48m[XCUITest]�[0m Crash reports root '/Users/xx/Library/Logs/CrashReporter/MobileDevice/iPhone 14 pro max' does not exist. Got nothing to gather.
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Event 'logCaptureStarted' logged at 1710398420804 (14:40:20 GMT+0800 (China Standard Time))
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Setting up real device
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
�[38;5;64m[DevCon Factory]�[0m Requesting connection for device 00008120 on local port 8100, device port 8100
�[38;5;64m[DevCon Factory]�[0m Cached connections count: 0
�[38;5;64m[DevCon Factory]�[0m Successfully requested the connection for 00008120:8100
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
�[38;5;80m[WD Proxy]�[0m Matched '/status' to command name 'getStatus'
�[38;5;80m[WD Proxy]�[0m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
�[38;5;80m[WD Proxy]�[0m Got response with status 200: {"value":{"build":{"time":"Mar 14 2024 11:00:55","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"},"os":{"testmanagerdVersion":65535,"name":"iOS","sdkVersion":"17.4","version":"17.4"},"device":"iphone","ios":{"ip":"169.254.12.40"},"message":"WebDriverAgent is ready to accept commands","state":"success","ready":true},"sessionId":null}
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Upgrade timestamp of the currently bundled WDA: 1701086487716
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Upgrade timestamp of the WDA on the device: undefined
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Will reuse previously cached WDA instance at 'http://127.0.0.1:8100/' with 'com.facebook.WebDriverAgentRunner'. Set the wdaLocalPort capability to a value different from 8100 if this is an undesired behavior.
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Trying to start WebDriverAgent 1 times with 10000ms interval
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Event 'wdaStartAttempted' logged at 1710398420913 (14:40:20 GMT+0800 (China Standard Time))
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Using provided WebdriverAgent at 'http://127.0.0.1:8100/'
�[38;5;80m[WD Proxy]�[0m Matched '/status' to command name 'getStatus'
�[38;5;80m[WD Proxy]�[0m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
�[38;5;80m[WD Proxy]�[0m Got response with status 200: {"value":{"build":{"time":"Mar 14 2024 11:00:55","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"},"os":{"testmanagerdVersion":65535,"name":"iOS","sdkVersion":"17.4","version":"17.4"},"device":"iphone","ios":{"ip":"169.254.12.40"},"message":"WebDriverAgent is ready to accept commands","state":"success","ready":true},"sessionId":null}
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Event 'wdaSessionAttempted' logged at 1710398420922 (14:40:20 GMT+0800 (China Standard Time))
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Sending createSession command to WDA
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Matched '/session' to command name 'createSession'
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":false,"forceAppLaunch":false,"useNativeCachingStrategy":true,"forceSimulatorSoftwareKeyboardPresence":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Got response with status 200: {"value":{"sessionId":"082C8800-8ED7-4E43-94C0-73FB271032AB","capabilities":{"sdkVersion":"17.4","device":"iphone"}},"sessionId":"082C8800-8ED7-4E43-94C0-73FB271032AB"}
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Determined the downstream protocol as 'W3C'
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Event 'wdaSessionStarted' logged at 1710398420938 (14:40:20 GMT+0800 (China Standard Time))
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Event 'wdaStarted' logged at 1710398420938 (14:40:20 GMT+0800 (China Standard Time))
�[38;5;96m[BaseDriver]�[0m The value of 'elementResponseAttributes' setting did not change. Skipping the update for it
�[38;5;96m[BaseDriver]�[0m The value of 'shouldUseCompactResponses' setting did not change. Skipping the update for it
�[38;5;16m[AppiumDriver@03e1]�[0m New XCUITestDriver session created successfully, session 643eeb6c-87e7-4c23-b65c-8ee4854a05a5 added to master session list
�[38;5;16m[AppiumDriver@03e1]�[0m Event 'newSessionStarted' logged at 1710398420938 (14:40:20 GMT+0800 (China Standard Time))
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Cached the protocol value 'W3C' for the new session 643eeb6c-87e7-4c23-b65c-8ee4854a05a5
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Responding to client with driver.createSession() result: {"capabilities":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"platformName":"iOS","autoAcceptAlerts":true,"autoDismissAlerts":true,"autoGrantPermissions":true,"automationName":"XCUITest","deviceName":"iPhone","noReset":true,"agentPath":"/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj","bootStrapPath":"/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent","platformVersion":"17.4","udid":"00008120","bundle_id":"hihi"}}
�[38;5;0m[HTTP]�[0m �[37m<-- POST /wd/hub/session �[39m�[32m200�[39m �[90m429 ms - 748�[39m
�[38;5;0m[HTTP]�[0m �[90m�[39m
�[38;5;0m[HTTP]�[0m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/643eeb6c-87e7-4c23-b65c-8ee4854a05a5/location�[39m
�[38;5;0m[HTTP]�[0m �[90m{"location":{"latitude":"1.264698","longitude":"103.822346"}}�[39m
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Calling AppiumDriver.setGeoLocation() with args: [{"latitude":"1.264698","longitude":"103.822346"},"643eeb6c-87e7-4c23-b65c-8ee4854a05a5"]
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Executing command 'setGeoLocation'
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Proxy mobile:setSimulatedLocation method as iOS 17+ platform version
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Proxying to WDA with an unknown route: POST /wda/simulatedLocation
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Proxying [POST /wda/simulatedLocation] to [POST http://127.0.0.1:8100/session/082C8800-8ED7-4E43-94C0-73FB271032AB/wda/simulatedLocation] with body: {"latitude":"1.264698","longitude":"103.822346"}
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Got response with status 200: {"value":null,"sessionId":"082C8800-8ED7-4E43-94C0-73FB271032AB"}
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Responding to client with driver.setGeoLocation() result: {"latitude":"1.264698","longitude":"103.822346","altitude":0}
�[38;5;0m[HTTP]�[0m �[37m<-- POST /wd/hub/session/643eeb6c-87e7-4c23-b65c-8ee4854a05a5/location �[39m�[32m200�[39m �[90m187 ms - 71�[39m
�[38;5;0m[HTTP]�[0m �[90m�[39m
�[38;5;0m[HTTP]�[0m �[37m-->�[39m �[37mPOST�[39m �[37m/wd/hub/session/643eeb6c-87e7-4c23-b65c-8ee4854a05a5/appium/start_recording_screen�[39m
�[38;5;0m[HTTP]�[0m �[90m{"options":{"videoType":"mpeg4"}}�[39m
�[38;5;32m[XCUITestDriver@4e4a (643eeb6c)]�[0m Calling AppiumDriver.startRecordingScreen() with args: [{"videoType":"mpeg4"},"643eeb6c-87e7-4c23-b65c-8ee4854a05a5"]

from appium.

mykola-mokhnach avatar mykola-mokhnach commented on June 9, 2024

set location function does not take effect

it just triggers the downstream XCTest APIs. Consider reporting an issue to Apple if this API does not work as expected.

from appium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.