Skip to content

Refactor mobile: getAppStrings to use execute_script exclusively#1215

Open
Dor-bl wants to merge 4 commits intoappium:masterfrom
Dor-bl:remove-app-strings-fallback-16370282440067229945
Open

Refactor mobile: getAppStrings to use execute_script exclusively#1215
Dor-bl wants to merge 4 commits intoappium:masterfrom
Dor-bl:remove-app-strings-fallback-16370282440067229945

Conversation

@Dor-bl
Copy link
Copy Markdown
Contributor

@Dor-bl Dor-bl commented Apr 5, 2026

This pull request refactors how app string retrieval is handled in the Appium Python client by removing legacy code paths and cleaning up related commands. The primary focus is on simplifying the app_strings method and removing unused or deprecated command definitions.

App string retrieval refactor:

  • Simplified the app_strings method in applications.py by removing the fallback to the legacy GET_APP_STRINGS command and its associated exception handling. Now, only the extension-based approach is used.

Command cleanup:

  • Removed the registration of the GET_APP_STRINGS command from the command executor in _add_commands.
  • Deleted the GET_APP_STRINGS constant from MobileCommand in mobilecommand.py, as it is no longer used.

semantic-release and others added 4 commits April 5, 2026 23:45
Automatically generated by python-semantic-release
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.
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.
@linux-foundation-easycla
Copy link
Copy Markdown

CLA Missing ID CLA Not Signed

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.

1 participant