Skip to content

refactor: remove legacy fallback in toggle_location_services#1224

Merged
KazuCocoa merged 1 commit intoappium:masterfrom
Dor-bl:remove-location-toggle-fallback-12199018167299631792
May 3, 2026
Merged

refactor: remove legacy fallback in toggle_location_services#1224
KazuCocoa merged 1 commit intoappium:masterfrom
Dor-bl:remove-location-toggle-fallback-12199018167299631792

Conversation

@Dor-bl
Copy link
Copy Markdown
Contributor

@Dor-bl Dor-bl commented May 3, 2026

Removed the deprecated fallback logic in toggle_location_services that used the TOGGLE_LOCATION_SERVICES command. The method now exclusively uses the mobile: toggleGps script.

Also removed the TOGGLE_LOCATION_SERVICES constant from MobileCommand and its registration in Location._add_commands, as it is no longer used.

Updated test/unit/webdriver/device/location_test.py to verify the new behavior.

Removed the deprecated fallback logic in `toggle_location_services` that
used the `TOGGLE_LOCATION_SERVICES` command. The method now exclusively
uses the `mobile: toggleGps` script.

Also removed the `TOGGLE_LOCATION_SERVICES` constant from
`MobileCommand` and its registration in `Location._add_commands`, as it
is no longer used.

Updated `test/unit/webdriver/device/location_test.py` to verify the new
behavior.
@KazuCocoa KazuCocoa merged commit ed9eaff into appium:master May 3, 2026
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants