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'