From 74a9060acff08a0d59b2ec13b7a934525328809f Mon Sep 17 00:00:00 2001 From: semantic-release Date: Fri, 27 Mar 2026 23:06:45 +0000 Subject: [PATCH 1/4] 1.0.0 Automatically generated by python-semantic-release --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 192c5573..82f91d4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,7 +44,6 @@ ([#1211](https://github.com/appium/python-client/pull/1211), [`ad8c5c9`](https://github.com/appium/python-client/commit/ad8c5c9ce33e85d6b417f2545df83b32e56c7fd0)) - ## v5.2.7 (2026-03-05) ### Bug Fixes From fe356e0f7590b81c2f1e61fcf9c41bba983b3965 Mon Sep 17 00:00:00 2001 From: Dor-bl <59066376+Dor-bl@users.noreply.github.com> Date: Sun, 5 Apr 2026 20:50:23 +0000 Subject: [PATCH 2/4] refactor: remove legacy fallback for `mobile: getAppStrings` This change removes the legacy fallback mechanism when executing `mobile: getAppStrings` in `appium/webdriver/extensions/applications.py`. The `app_strings` method now exclusively uses the `execute_script` approach. Correspondingly, the `GET_APP_STRINGS` command registration in `Applications._add_commands` and the command definition in `MobileCommand` have also been removed. --- appium/webdriver/extensions/applications.py | 7 +------ appium/webdriver/mobilecommand.py | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/appium/webdriver/extensions/applications.py b/appium/webdriver/extensions/applications.py index b259422e..ca2a3022 100644 --- a/appium/webdriver/extensions/applications.py +++ b/appium/webdriver/extensions/applications.py @@ -241,11 +241,7 @@ def app_strings(self, language: Union[str, None] = None, string_file: Union[str, data['language'] = language if string_file is not None: data['stringFile'] = string_file - try: - return self.assert_extension_exists(ext_name).execute_script(ext_name, data) - except UnknownMethodException: - # TODO: Remove the fallback - return self.mark_extension_absence(ext_name).execute(Command.GET_APP_STRINGS, data)['value'] + return self.assert_extension_exists(ext_name).execute_script(ext_name, data) def _add_commands(self) -> None: self.command_executor.add_command(Command.BACKGROUND, 'POST', '/session/$sessionId/appium/app/background') @@ -271,4 +267,3 @@ def _add_commands(self) -> None: 'POST', '/session/$sessionId/appium/device/app_state', ) - self.command_executor.add_command(Command.GET_APP_STRINGS, 'POST', '/session/$sessionId/appium/app/strings') diff --git a/appium/webdriver/mobilecommand.py b/appium/webdriver/mobilecommand.py index 79ac25e1..fa9e487c 100644 --- a/appium/webdriver/mobilecommand.py +++ b/appium/webdriver/mobilecommand.py @@ -31,7 +31,6 @@ class MobileCommand: SWITCH_TO_CONTEXT = 'switchToContext' BACKGROUND = 'background' - GET_APP_STRINGS = 'getAppStrings' IS_LOCKED = 'isLocked' LOCK = 'lock' From 525c207ec032c77dbd035d2c6581052c6c588d17 Mon Sep 17 00:00:00 2001 From: Dor-bl <59066376+Dor-bl@users.noreply.github.com> Date: Sun, 5 Apr 2026 21:02:25 +0000 Subject: [PATCH 3/4] refactor: remove legacy fallback for `mobile: getAppStrings` This change removes the legacy fallback mechanism when executing `mobile: getAppStrings` in `appium/webdriver/extensions/applications.py`. The `app_strings` method now exclusively uses the `execute_script` approach. Correspondingly, the `GET_APP_STRINGS` command registration in `Applications._add_commands` and the command definition in `MobileCommand` have also been removed. From 2025fdddd6aa53591b6e3866e5401983a51677cd Mon Sep 17 00:00:00 2001 From: Dor-bl Date: Sun, 5 Apr 2026 23:47:34 +0200 Subject: [PATCH 4/4] chore: add a blank line before version v5.2.7 in CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82f91d4b..192c5573 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ ([#1211](https://github.com/appium/python-client/pull/1211), [`ad8c5c9`](https://github.com/appium/python-client/commit/ad8c5c9ce33e85d6b417f2545df83b32e56c7fd0)) + ## v5.2.7 (2026-03-05) ### Bug Fixes