Skip to content

feat: mark ActionHelpers interaction shortcuts as deprecated - #1333

Open
hoanle0126 wants to merge 1 commit into
appium:masterfrom
hoanle0126:feat/deprecate-action-helpers-671
Open

hoanle0126 wants to merge 1 commit into
appium:masterfrom
hoanle0126:feat/deprecate-action-helpers-671

Conversation

@hoanle0126

Copy link
Copy Markdown

Description

Marks the interaction shortcut methods on ActionHelpers (scroll, drag_and_drop, tap, swipe, and flick) as deprecated via @deprecated (typing_extensions) and Sphinx .. deprecated:: docstrings, and expands the README section with examples of building W3C actions (ActionChains / ActionBuilder) and using driver-specific mobile: gesture commands.

Closes #671

Changes

  • Decorate scroll, drag_and_drop, tap, swipe, and flick with @deprecated so callers receive both static type-checker warnings and runtime DeprecationWarnings.
  • Document W3C ActionChains / ActionBuilder pointer setup and mobile: gesture execute_script usage in README.md.
  • Add unit tests in test/unit/webdriver/device/action_helpers_test.py verifying the deprecation warnings and W3C action payloads.

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.

Mark deprecated in shortcuts

1 participant