You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[4138dcd7][HTTP] --> POST /wd/hub/session/4138dcd7-70fc-46cb-a28f-f62fa22b1d7d/execute/sync {"script":"mobile: getConnectivity","args":[{"services":["wifi","data"]}]}
[4138dcd7][AndroidUiautomator2Driver@5e45] Calling AppiumDriver.execute() with args: ["mobile: getConnectivity",[{"services":["wifi","data"]}],"4138dcd7-70fc-46cb-a28f-f62fa22b1d7d"]
[4138dcd7][ADB] Running '/Users/okaruk/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get global wifi_on'
[4138dcd7][ADB] Running '/Users/okaruk/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get global mobile_data'
[4138dcd7][AndroidUiautomator2Driver@5e45] Responding to client with driver.execute() result: {"wifi":true,"data":true,"airplaneMode":false}
[4138dcd7][HTTP] <-- POST /wd/hub/session/4138dcd7-70fc-46cb-a28f-f62fa22b1d7d/execute/sync 200 78 ms - 56
The text was updated successfully, but these errors were encountered:
okaruk
changed the title
Seems like 'services' argument is ignored in mobile: getConnectivity command
Seems like 'services' argument is ignored in 'mobile: getConnectivity' command
Feb 24, 2025
okaruk
changed the title
Seems like 'services' argument is ignored in 'mobile: getConnectivity' command
'services' argument in 'mobile: getConnectivity' command doesn't impact the output of services states
Feb 24, 2025
According to statement the
services
argument should filter the output to only include a particular service connectivity status.Ruby cmd 1:
driver.execute_script("mobile: getConnectivity", services: "wifi")
Output:
{"wifi" => true, "data" => false, "airplaneMode" => false}
Ruby cmd 2:
driver.execute_script("mobile: getConnectivity", services: %w[wifi data])
Output:
{"wifi" => true, "data" => false, "airplaneMode" => false}
The text was updated successfully, but these errors were encountered: