Skip to content

Instantly share code, notes, and snippets.

@Dor-bl
Last active July 27, 2023 06:59
Show Gist options
  • Save Dor-bl/ccce5c261558c1352b3e5a48f100cb3a to your computer and use it in GitHub Desktop.
Save Dor-bl/ccce5c261558c1352b3e5a48f100cb3a to your computer and use it in GitHub Desktop.
GetLocation
[HTTP] --> GET /session/d79343a0-a80b-491a-abf8-51daa2c6a821/location
[HTTP] {}
[debug] [AndroidUiautomator2Driver@3f58 (d79343a0)] Calling AppiumDriver.getGeoLocation() with args: ["d79343a0-a80b-491a-abf8-51daa2c6a821"]
[debug] [ADB] Getting IDs of all 'io.appium.settings' processes
[debug] [ADB] Running 'C:\Users\dorb\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'
[debug] [ADB] Running 'C:\Users\dorb\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am broadcast -n io.appium.settings/.receivers.LocationInfoReceiver -a io.appium.settings.location'
[debug] [AndroidUiautomator2Driver@3f58 (d79343a0)] Encountered internal error running command: Error: Cannot parse the actual location values from the command output: Broadcasting: Intent { act=io.appium.settings.location flg=0x400000 cmp=io.appium.settings/.receivers.LocationInfoReceiver }
[debug] [AndroidUiautomator2Driver@3f58 (d79343a0)] Broadcast completed: result=0, data=""
[debug] [AndroidUiautomator2Driver@3f58 (d79343a0)] at ADB.getGeoLocation (C:\Users\dorb\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-adb\lib\tools\settings-client-commands.js:326:11)
[debug] [AndroidUiautomator2Driver@3f58 (d79343a0)] at AndroidUiautomator2Driver.getGeoLocation (C:\Users\dorb\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-android-driver\lib\commands\network.js:282:43)
[HTTP] <-- GET /session/d79343a0-a80b-491a-abf8-51daa2c6a821/location 500 151 ms - 1030
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment