diff --git a/lib/appium_lib/android/client_xpath.rb b/lib/appium_lib/android/client_xpath.rb index 58a2dd3b..df3f9be7 100644 --- a/lib/appium_lib/android/client_xpath.rb +++ b/lib/appium_lib/android/client_xpath.rb @@ -33,11 +33,15 @@ def _client_xpath(opts = {}) _nodeset_to_uiselector nodes: nodes, first: first end + # @deprecated Please use :uiautomator or :xpath strategy directly def client_xpath(xpath) + warn '[DEPRECATION] client_xpath will be removed. Please use :uiautomator or :xpath strategy directly.' find_element :uiautomator, _client_xpath(xpath: xpath, first: true) end + # @deprecated Please use :uiautomator or :xpath strategy directly def client_xpaths(xpath) + warn '[DEPRECATION] client_xpaths will be removed. Please use :uiautomator or :xpath strategy directly.' find_elements :uiautomator, _client_xpath(xpath: xpath, first: false) end end